HomePhabricator

User: Allow newSystemUser() to create over anonymous actors

Description

User: Allow newSystemUser() to create over anonymous actors

Various maintenance scripts assume reserved usernames like
"MediaWiki default" exist, but since they're reserved
User::isUsableName() returns false and therefore the actor migration
created them as anonymous actors. Which would then prevent those
maintenance scripts from using User::newSystemUser() to ensure they
actually exist.

This adjusts User::newSystemUser() to be able to create users for
those anonymous actors.

This also adjusts uses of "MediaWiki default" in core to create it as a
system user.

Bug: T236444
Change-Id: I59a646df36ff9343cc43c05aa20b2b69b2ee124a

Details

Provenance
AnomieAuthored on Oct 28 2019, 3:51 PM
Parents
rMW68d87dba9f21: Remove Parser::serializeHalfParsedText() and helpers
Branches
Unknown
Tags
Unknown
ChangeId
I59a646df36ff9343cc43c05aa20b2b69b2ee124a