Issue 3541: Full-width usernames not handled well
Status:  New
Owner: ----
Project Member Reported by dougk....@gmail.com, Aug 31, 2015
Affected Version: 2.10.6

What steps will reproduce the problem?
1. Register a Gerrit account under any username using LDAP (tested against Active Directory) or some similar method which uses username/password
2. Attempt to log into the account using full-width (Unicode) characters in the username

What is the expected output?
I would expect the login to fail (most likely), or succeed, if the full-width characters are silently converted back to the regular Latin character sets.

What do you see instead?
An error, "Cannot assign user name "<user>" to account <numeric ID>; name already in use."

Please provide any additional information below.
It seems like Gerrit is converting the full width characters for purposes of testing the LDAP password (or when using the account name -- if using HTTP_LDAP), but then realizes the account name isn't the same as what already exists in the database, so it tries to make a new account and fails.  As far as I can tell, no actual part of the new account is created, other than a numeric ID being reserved for it.  In any case, the behavior seems inconsistent.