Filing a bug mostly because I don't know what to do about it.
Tried to create an account named "tst login" (note double space). This failed due to the check:
$parsed = Title::newFromText( $name ); if( is_null( $parsed ) || $parsed->getNamespace() || strcmp( $name, $parsed->getPrefixedText() ) ) {
Which is meant to detect namespace prefixes. (the third part checks if its equal to its normalization, and fails if not)
We should probably just give a warning if the user name normalizes to something different then typed. We should also more generally be specific why things fail.
Version: 1.22.0
Severity: normal