4390: Unable to add github repository when account linked with email and not username

PeterTran

What version are you running?

2.5.3

What's the URL of the page containing the problem?

admin/db/scmtools/repository/add/
(Adding a repository)

What steps will reproduce the problem?

  1. Select 'Github' under 'Hosting service'
  2. Select '<link new account>' under 'Account'
  3. Type in your github email address in 'Account username' field.
  4. Type in your password in the 'Account password' field
  5. Type in a valid repository name that your github account is the owner of in the 'Repository name' field.
  6. Click 'Save'.

What is the expected output? What do you see instead?

Linking the new account works however the repository is not added and the following error message appears:
"A repository with this name was not found, or your user may not own it."

The linking of an account via an email address should fail or the repository should be able to be added properly.

What operating system are you using? What browser?

CentOS, Chrome

Please provide any additional information below.

The token is created successfully when the github account is linked but the token doesn't seem to be valid in adding the repo.

When the above instructions are followed except a github username is used instead of an email address, everything works.