password_policy_update_7105() refers to the column name "constraints" which does not exist until the subsequent update function, password_policy_update_7106(), is run.

The result is PHP errors upon visiting pages with password change forms, and the user is unable to change their password.

Example error:

Warning: call_user_func() expects parameter 1 to be a valid callback, function 'password_policy_constraint_complexity_error' not found or invalid function name in _password_policy_constraint_error() (line 1201 of /var/www/html/drupal7/sites/all/modules/password_policy/password_policy.module).

This should not affect sites upgrading from 7.x-1.12 from 7.x-1.13. However, it will affect sites upgrading from earlier versions to 7.x-1.13.

This bug was introduced by #2647176: Rename 'policy' field to 'constraints'.

Comments

AohRveTPV created an issue. See original summary.

aohrvetpv’s picture

Steps to reproduce:
1. Install 7.x-1.11.
2. Enable a policy with the Complexity: 2.
3. Upgrade to 7.x-1.13.
4. Browse to user edit page.

aohrvetpv’s picture

Tested that this fix works with three possible upgrade paths:
1. 11 -> 12 -> 13 -> 14
2. 11 -> 13 -> 14
3. 11 -> 14

I think we need to release a 7.x-1.14 as soon as possible with this fix (unfortunately). Otherwise, sites may upgrade and their users will not be able to set/change passwords.

aohrvetpv’s picture

Seems like it'd be cleaner to just delete 7105.

Tested the three upgrade paths again, no problems.

aohrvetpv’s picture

Title: Faulty update function for update 7105 » Update 7105 faulty under certain circumstances

  • AohRveTPV committed 44ae639 on 7.x-1.x
    Issue #2873715 by AohRveTPV: Update 7105 faulty under certain...
aohrvetpv’s picture

Will plan to release 7.x-1.14 in an hour or so with this fix.

aohrvetpv’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.