Page MenuHomePhabricator

maintenance/cleanupSpam.php says Invalid username specified in 'spambot_username' message when account already exists
Closed, InvalidPublic

Description

The cleanupSpam maintenance script uses User::newSystemUser() function to get the user to perform actions as and passes the message from spambot_username. This works when the specified user doesn't exist. But when the specified user exists, the identity is not "stolen" because the "steal" option is set to "false" by default in newSystemUser.

Event Timeline

This is an issue only when the username mentioned in spambot_username already exists. It probably is an intended feature not to allow "steal" of existing user accounts. Therefore, I'm closing this.