Steps to replicate the issue (include links if applicable):
- Run php run.php createAndPromote.php T335702 ' '
What happens?:
[9f644d3d3abdf5fdf514e3c5] [no req] PasswordError: Passwords must be at least 8 characters. Backtrace: from ./mediawiki/maintenance/createAndPromote.php(141) #0 ./mediawiki/maintenance/includes/MaintenanceRunner.php(681): CreateAndPromote->execute() #1 ./mediawiki/maintenance/run.php(51): MediaWiki\Maintenance\MaintenanceRunner->run() #2 {main}
A user is created, they have no password at all. (No ability to authenticate)
What should have happened instead?:
A better error (not a stack trace) is shown and no user is created, as the provided password was invalid.
Software version (skip for WMF-hosted wikis like Wikipedia):
Latest master (rMW446d11dfba317108ac79b54107288ef580af26d7)
Other information (browser name/version, screenshots, etc.):
This happened before, apparently, see T21157: createAndPromote error on bad password.
Also, the row in the database has no value for user_password, it is an empty string.