Shane Clarke created IVY-1557:
---------------------------------
Summary: Request info lost when IvyAuthenticator delegates to
wrapped authenticator
Key: IVY-1557
URL: https://issues.apache.org/jira/browse/IVY-1557
Project: Ivy
Issue Type: Bug
Reporter: Shane Clarke
Hit this in an environment with multiple authenticators.
IvyAuthenticator gets set as default during an ivy resolve wrapping the
previous authenticator.
Any subsequent password authentication request using
Authenticator.requestPasswordAuthentication(String host, InetAddress addr, int
port, String protocol, String prompt, String scheme, URL url,
Authenticator.RequestorType reqType) that the IvyAuthenticator can't handle
will be delegated to the 'original' wrapped authenticator.
But the requestingURL and requestingAuthType fields in the original request
will be lost.
The IvyAuthenticator is delegating using
Authenticator.requestPasswordAuthentication(String host, InetAddress addr, int
port, String protocol, String prompt, String scheme)
Which resets all fields to null and sets them to the method arguments losing
the two fields.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)