kali834x opened a new pull request, #1327: URL: https://github.com/apache/axis-axis2-java-core/pull/1327
HTTPProxyConfigurator.configure registered the proxy username and password under AuthScope(null, -1), the any-host scope, on the credentials provider that HttpClient 5 also consults for an origin server's 401. a server reached through the proxy, or any host a redirect lands on, could answer a repeatable request (GET, DELETE, an unchunked POST or one with allowedRetry) with a Basic challenge and get Authorization: Basic proxyuser:proxypass on the retry, inside its own TLS session when tunnelled. configure also replaced the provider that RequestImpl.enableAuthentication had already filled, so with both configured the origin was given the proxy password instead of its own. scope the credentials to the proxy host and port and add them to the existing BasicCredentialsProvider; ProxyCredentialScopeTest drives RequestImpl through a stub proxy with a real HttpClient and fails on master for both the origin 401 and the overridden origin credentials, while the proxy's 407 is still answered. HTTPProxyConfiguratorTest in modules/integration now also asserts an origin scope gets no credentials. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
