Closed (fixed)
Project:
Password Policy
Version:
7.x-1.7
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jun 2014 at 10:55 UTC
Updated:
3 Jul 2014 at 19:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
izus commentedhi,
here is a patch for this.
Thanks
Comment #2
aohrvetpv commentedThanks for reporting it and for the patch.
I don't think there are any problems caused by the update failing, but we should probably do another release soon to include this fix.
Comment #3
aohrvetpv commentedHere is a patch that fixes it in another way. I prefer this way because it only changes a line and keeps the update code easy to diff against
user_update_7000(). Also I think patch in #1 might perform a query for each execution ofpassword_policy_update_7102()(it is a batch API function so it gets invoked multiple times).Comment #4
aohrvetpv commentedWhoops, that patch was wrong...
Comment #5
aohrvetpv commentedNew patch for 7.x-1.x. 7.x-2.0-alpha2 also has this bug, and the same change should fix it.
Comment #6
aohrvetpv commentedAgain the patch is wrong...
Comment #7
aohrvetpv commentedOK, this one is better tested. I tested two cases:
1. No entries in {password_policy_history} => no division by zero error
2. Enough entries in {password_policy_history} to require multiple batch chunks => all password hashes converted
Comment #9
aohrvetpv commented