Page MenuHomePhabricator

`resetUserEmail.php` not applying email change to CentralAuth
Open, Needs TriagePublic

Description

Action: run mwscript resetUserEmail.php --wiki=enwiki "Foo" bar@example.com

Expected result: Email address for Foo@global changed to bar@example.com

Actual result: Email address for Foo@enwiki changed, email address for Foo@global not changed

Somewhere in the script it is failing to push the email change to CentralAuth.

Event Timeline

jrbs created this task.Oct 20 2018, 5:18 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 20 2018, 5:18 PM

FYI the "old" method of using eval.php ( see https://wikitech.wikimedia.org/wiki/Password_reset ) is also not working. Right now it seems like the only option is directly editing the centralauth database. Weirdly running the script/using eval.php DOES change the authentication date on the central database just doesn't change the email address.

Change 468789 had a related patch set uploaded (by Reedy; owner: Reedy):
[mediawiki/extensions/CentralAuth@master] Call CentralAuthUser->saveSettings() after setEmail()

https://gerrit.wikimedia.org/r/468789

Change 468790 had a related patch set uploaded (by Reedy; owner: Reedy):
[mediawiki/extensions/CentralAuth@wmf/1.32.0-wmf.26] Call CentralAuthUser->saveSettings() after setEmail()

https://gerrit.wikimedia.org/r/468790

Change 468790 merged by jenkins-bot:
[mediawiki/extensions/CentralAuth@wmf/1.32.0-wmf.26] Call CentralAuthUser->saveSettings() after setEmail()

https://gerrit.wikimedia.org/r/468790

It seems this hasn't helped...

jrbs added a comment.Oct 24 2018, 10:52 PM

Seems to have fixed itself ... I just ran it in support of T207097 and it seems to have worked fine. Someone may wish to doublecheck.

Change 468789 merged by jenkins-bot:
[mediawiki/extensions/CentralAuth@master] Call CentralAuthUser->saveSettings() after setEmail()

https://gerrit.wikimedia.org/r/468789