Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Notice: Trying to get property of non-object in password_policy_role_condition() (line 46 of code/sites/all/modules/contrib/password_policy/plugins/condition/role.inc).
Comment | File | Size | Author |
---|---|---|---|
#8 | password_policy-errors_on_cron_run-2076837-8.patch | 1.28 KB | AohRveTPV |
#5 | password_policy-errors_on_cron_run-2076837-2.patch | 2.06 KB | tatyana |
#1 | password_policy-errors_on_cron_run-2076837-1.patch | 2.08 KB | dyslabpro |
Comments
Comment #1
dyslabpro CreditAttribution: dyslabpro commentedNeed clearing table "password_policy_history", when a user is removed.
Comment #2
erikwebb CreditAttribution: erikwebb commentedComment #3
hefox CreditAttribution: hefox commentedneed a new line
Comment #4
erikwebb CreditAttribution: erikwebb commentedUpdate hook should be 7201, not 7300. Also yeah, newlines.
Comment #5
tatyana CreditAttribution: tatyana commentedComment #6
erikwebb CreditAttribution: erikwebb commentedComment #8
AohRveTPV CreditAttribution: AohRveTPV commentedRemade the patch in attempt to get it to apply, with the following changes:
- Fixed an indentation error.
- Changed update hook to 7202 instead of 7201, because there is now another patch pending commit that is using 7201. The changes are unrelated so ordering shouldn't matter.
I have not reviewed or tested the functionality provided by this patch; again just trying to get it to apply.
Comment #9
deekayen CreditAttribution: deekayen commentedComment #10
deekayen CreditAttribution: deekayen commentedHaven't looked, but I bet this needs to be backported.
Comment #11
AohRveTPV CreditAttribution: AohRveTPV commentedConfirmed that users are already removed upon deletion in 7.x-1.x and 6.x-1.x.
Interestingly, 7.x-1.x uses a transaction. erikwebb, do you remember why? You were the person who committed it. Wondering if 7.x-2.x should also use a transaction for some reason.
7.x-1.x code:
Comment #12
AohRveTPV CreditAttribution: AohRveTPV commentedComment #13
AohRveTPV CreditAttribution: AohRveTPV commentedOn second review, I think the transaction is just to ensure that either the deletions occur for all three tables or they do not occur. This prevents an inconsistent state where a user's Password Policy data is partially deleted. Since 7.x-2.x-dev currently only has one table from which to delete, no transaction is needed.
Nothing more to do on this issue.