Issue 3488: Cannot create account when Login name is e-mail address - using HTTP
Status:  New
Owner: ----
Reported by billinal...@gmail.com, Jul 20, 2015
Affected Version: 2.10.4

What steps will reproduce the problem?
1. Set up HTTP authentication with Gerrit and an authentication site where the account is an e-mail address (user is validated with their e-mail address and password).
2. Log in with valid account name of email address (e.g. bill@company.com) and password.
3. New user account is not created because the account contains an illegal character - "@". Looks like it is trying to map the mail address to the username field.  This is preventing automated creation of new accounts.  User sees "Forbidden" and account is not created. I can run the gerrit create-account command line and create an account but give it a non-email address.


What is the expected output? What do you see instead?
Older version the username was not required on initial account create.  I seem to remember a form coming up that allowed you to enter a username.  I do not get that now - just the Forbidden message.

Please provide any additional information below.
Error message in the log shows e-mail address (login account name):

[2015-07-20 12:47:24,244] ERROR com.google.gerrit.server.account.AccountManager : Cannot assign user name "xxxxxx@yahoo.com" to account 1000246; name does not conform.                                                                                                                        
[2015-07-20 12:47:24,271] ERROR com.google.gerrit.httpd.auth.container.HttpLoginServlet : Unable to authenticate user "xxxxxx@yahoo.com"        
com.google.gerrit.server.account.AccountUserNameException: Cannot assign user name "xxxxxx@yahoo.com" to account 1000246; name does not conform.

Under 2.5.3 the account was created.