Closed (fixed)
Project:
Password Policy
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Aug 2013 at 11:09 UTC
Updated:
28 Jul 2014 at 07:50 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dyslabpro commentedNeed clearing table "password_policy_history", when a user is removed.
Comment #2
erikwebb commentedComment #3
hefox commentedneed a new line
Comment #4
erikwebb commentedUpdate hook should be 7201, not 7300. Also yeah, newlines.
Comment #5
tatyana commentedComment #6
erikwebb commentedComment #8
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 commentedComment #10
deekayen commentedHaven't looked, but I bet this needs to be backported.
Comment #11
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 commentedComment #13
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.