Page MenuHomePhabricator

Global rename race condition with automatic account creation
Open, Needs TriagePublic

Description

[10:19:23] <RxyBotLT> [[Special:Log/gblrename]] rename  * Steinsplitter *  Steinsplitter globally renamed [[Special:CentralAuth/Misty~lvwiki]] to [[Special:CentralAuth/Mistymoonlight]]: per [[:m:Special:GlobalRenameQueue/request/14901|request]]

That rename was logged at 2015-05-19T17:19:22. However, the user was able to autocreate an account on wikidata at that same exact second:

2015-05-19 17:19:22 mw1208 wikidatawiki CentralAuth INFO: Attaching local user Misty~lvwiki@wikidatawiki by 'login' {"private":false}

The wikidatawiki account was *not* renamed and CentralAuthUser::queryAttached() is fataling due to that...but the localuser row *was* updated.

Event Timeline

Legoktm raised the priority of this task from to Needs Triage.
Legoktm updated the task description. (Show Details)
Legoktm added a project: GlobalRename.
Legoktm added subscribers: Legoktm, hoo.
Restricted Application added a subscriber: Aklapper. · View Herald Transcript

We probably read CentralAuthUser::listAttached() out of the out of date cache.