[
https://issues.apache.org/jira/browse/AXIS2-5948?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17532818#comment-17532818
]
Torsten commented on AXIS2-5948:
--------------------------------
Possible scope problem in class
https://github.com/apache/axis-axis2-java-core/blob/master/modules/transport/http/src/org/apache/axis2/transport/http/impl/httpclient4/HTTPProxyConfigurator.java
{quote} if (proxyCredentials != null) {
// TODO : Set preemptive authentication, but its not recommended in
HC 4
requestConfig.setAuthenticationEnabled(true);
CredentialsProvider credsProvider =
clientContext.getCredentialsProvider();
if (credsProvider == null) {
credsProvider = new BasicCredentialsProvider();
clientContext.setCredentialsProvider(credsProvider);
}
credsProvider.setCredentials(AuthScope.ANY, proxyCredentials);
HttpHost proxy = new HttpHost(proxyHost, proxyPort);
requestConfig.setProxy(proxy);
}{quote}
*must be changed to*
{quote}if (proxyCredentials != null) {
// TODO : Set preemptive authentication, but its not recommended in
HC 4
requestConfig.setAuthenticationEnabled(true);
CredentialsProvider credsProvider =
clientContext.getCredentialsProvider();
if (credsProvider == null) {
credsProvider = new BasicCredentialsProvider();
clientContext.setCredentialsProvider(credsProvider);
}
}
*credsProvider.setCredentials(AuthScope.ANY, proxyCredentials);
HttpHost proxy = new HttpHost(proxyHost, proxyPort);
requestConfig.setProxy(proxy);*{quote}
> Proxy settings ignored if username not specified
> ------------------------------------------------
>
> Key: AXIS2-5948
> URL: https://issues.apache.org/jira/browse/AXIS2-5948
> Project: Axis2
> Issue Type: Bug
> Components: jaxws, transports
> Affects Versions: 1.7.7, 1.7.9
> Reporter: Kevin Perry
> Priority: Major
>
> org/apache/axis2/transport/http/impl/httpclient4/HTTPProxyConfigurator.configure
> carefully collects the proxy details, but then does not call the following
> code if no username is provided:
>
> {code:java}
> HttpHost proxy = new HttpHost(proxyHost, proxyPort);
> requestConfig.setProxy(proxy);
> {code}
>
>
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]