Version
7.8.0-SNAPSHOT
Operating System
MacOS
Bug description
The ConsoleAuthenticator relies on Authenticator.getRequestURI() for calculating the realm string in
|
realm.append(getRequestingURL()); |
. Unfortunately this is not populated with a non null value for Apache HTTP Client 4.5.14 (
https://issues.apache.org/jira/browse/HTTPCLIENT-1748). This is only fixed in Apache HTTP Client 5.0.0 (
https://github.com/apache/httpcomponents-client/pull/55/changes#diff-518a2b7487762a0d22a3afb690f50beff9b6f1d5d42d603388c9e3619a91b3ecL104).
As a workaround there should be some fallback in case Authenticator.getRequestingURL() returns null.
Actual behavior
That leads to emitting Username for null: when basic auth is triggered for e.g. a git clone via jgit clone https://github.com/Netcentric/calendar-sync.git.
Expected behavior
There should be some proper realm name emitted like Username for github.com
Relevant log output
Other information
No response
Version
7.8.0-SNAPSHOT
Operating System
MacOS
Bug description
The ConsoleAuthenticator relies on
Authenticator.getRequestURI()for calculating the realm string injgit/org.eclipse.jgit.pgm/src/org/eclipse/jgit/console/ConsoleAuthenticator.java
Line 67 in de6c863
As a workaround there should be some fallback in case
Authenticator.getRequestingURL()returns null.Actual behavior
That leads to emitting Username for null: when basic auth is triggered for e.g. a git clone via
jgit clone https://github.com/Netcentric/calendar-sync.git.Expected behavior
There should be some proper realm name emitted like
Username for github.comRelevant log output
Other information
No response