If getInstanceByName is called with a non-canonical username, that non-canonical name will also be used in any database queries which can create subtle bugs like T343958.
Description
Details
Related Objects
- Mentioned In
- T358149: InvalidArgumentException: Invalid username: Https//www.cocororo.net/
T358112: Special:Contributions for IP ranges fails with InvalidArgumentException , due to CentralAuth
T357746: /wiki/Special:BlockList InvalidArgumentException: Invalid username
T343958: Renaming one account multiple times creates duplicate global accounts - Mentioned Here
- T343958: Renaming one account multiple times creates duplicate global accounts
Event Timeline
Change 988450 had a related patch set uploaded (by D3r1ck01; author: Derick Alangi):
[mediawiki/extensions/CentralAuth@master] Normalize username of user if in non-canonical form
Change 989647 had a related patch set uploaded (by D3r1ck01; author: Derick Alangi):
[mediawiki/extensions/CentralAuth@master] CentralAuthUser: Don't expose `::setInstanceByName()` directly
Change 988450 abandoned by D3r1ck01:
[mediawiki/extensions/CentralAuth@master] Normalize username of user if in non-canonical form
Reason:
Approaching this differently in Ifd9964ff3c0983aaf77d382f8b5fa1fadc2af000
Change 989647 merged by jenkins-bot:
[mediawiki/extensions/CentralAuth@master] CentralAuthUser: Don't expose `::setInstanceByName()` directly
Change 988450 restored by D3r1ck01:
[mediawiki/extensions/CentralAuth@master] Normalize username of user if in non-canonical form
Change 1003005 had a related patch set uploaded (by D3r1ck01; author: Derick Alangi):
[mediawiki/extensions/AbuseFilter@master] tests: Fix usernames that seem like invalid usernames
Change 1003005 abandoned by D3r1ck01:
[mediawiki/extensions/AbuseFilter@master] [EXP] tests: Properly mock external users to track contributions
Reason:
Change 1003752 had a related patch set uploaded (by D3r1ck01; author: Derick Alangi):
[mediawiki/core@master] logging: Fix LogFormatterTestCase from throwing with CheckUser
Change 1003752 merged by jenkins-bot:
[mediawiki/core@master] logging: Fix LogFormatterTestCase from throwing with CheckUser
Change 988450 merged by jenkins-bot:
[mediawiki/extensions/CentralAuth@master] User: Normalize username of user if in non-canonical form
With the CA patch merged, I think this is resolved. Please reopen if there is something we're missing.