Page MenuHomePhabricator

Renaming global account to non-canonical form causes rename jobs to be lost
Closed, ResolvedPublic

Description

Steps to reproduce
  1. Go to Special:GlobalRenameUser as a sufficiently privileged user
  2. Put non-canonical username form into the "rename to username" (for example, I renamed Martin Urbanec (test 9) to martin Urbanec_(test 9-renamed)
Expected behaviour

MediaWiki normalizes both usernames and rename completes without any issues.

Observed behaviour

Rename is stuck in the rename queue, and needs to be unstuck via https://wikitech.wikimedia.org/wiki/Stuck_global_renames.

Notes

Example rename form as submitted by me while testing:

Screenshot 2023-08-10 at 11.21.46.png (458×1 px, 73 KB)

Running unstucking script with non-canonical usernames appears to work.

Probable cause: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CentralAuth/+/934384.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 947794 had a related patch set uploaded (by Majavah; author: Majavah):

[mediawiki/extensions/CentralAuth@master] GlobalRename: Ensure status database rows use the normalized name

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

Urbanecm_WMF renamed this task from Renaming global account to non-canonical form causes rename jobs to be post to Renaming global account to non-canonical form causes rename jobs to be lost.Aug 10 2023, 9:41 AM

Change 947794 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] GlobalRename: Ensure status database rows use the normalized name

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

Change 947454 had a related patch set uploaded (by Urbanecm; author: Majavah):

[mediawiki/extensions/CentralAuth@wmf/1.41.0-wmf.20] GlobalRename: Ensure status database rows use the normalized name

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

Change 947454 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@wmf/1.41.0-wmf.20] GlobalRename: Ensure status database rows use the normalized name

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

Mentioned in SAL (#wikimedia-operations) [2023-08-10T11:35:16Z] <taavi@deploy1002> Started scap: Backport for [[gerrit:947454|GlobalRename: Ensure status database rows use the normalized name (T343956)]]

Mentioned in SAL (#wikimedia-operations) [2023-08-10T11:36:48Z] <taavi@deploy1002> taavi and urbanecm: Backport for [[gerrit:947454|GlobalRename: Ensure status database rows use the normalized name (T343956)]] synced to the testservers mwdebug2002.codfw.wmnet, mwdebug1001.eqiad.wmnet, mwdebug1002.eqiad.wmnet, mwdebug2001.codfw.wmnet, and mw-debug kubernetes deployment (accessible via k8s-experimental XWD option)

Mentioned in SAL (#wikimedia-operations) [2023-08-10T11:45:33Z] <taavi@deploy1002> Finished scap: Backport for [[gerrit:947454|GlobalRename: Ensure status database rows use the normalized name (T343956)]] (duration: 10m 17s)