Details
-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
4.10.1, 4.11.0
-
None
-
4
-
Severity 3 - Minor
-
3
-
Description
Summary
The unsuccessful authentication with Github (github.com and GitHub Enterprise) may lead to a 404 status code being returned.
This information is not added to the log files unless the org.apache.http debug log level is enabled.
Â
Steps to Reproduce
- In the repository importer dialog, select:
- GitHub -> GitHub Enterprise (self-hosted) or GitHub (github.com)
- Enter the Username and the Personal access token
Note: this problem has only been observed when the username contains a ., which is not a valid character for a username in GitHub but can still be used when integrating with third party authentication products (e.g. LDAP).
Â
Expected Results
The authentication fails with a message to the user and a log line.
Â
Actual Results
The below exception is thrown in the atlassian-bitbucket.log file when the org.apache.http debug log level is enabled:
DEBUG [I/O dispatcher 34] org.apache.http.wire http-outgoing-32 >> "HEAD /api/v3/users/<user.name>Â HTTP/1.1[\r][\n]" DEBUG [I/O dispatcher 34] org.apache.http.wire http-outgoing-32 << "HTTP/1.1 404 Not Found[\r][\n]"
Â
Workaround
Perform the authentication by using user-name as username instead of user.name.