[
https://issues.apache.org/jira/browse/HTTPCLIENT-1056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12992433#comment-12992433
]
Sebb commented on HTTPCLIENT-1056:
----------------------------------
Definitely looks wrong, but maybe it should be:
AuthScope(host.getHostName(), host.getPort(), authScheme.getRealm(),
schemeName));
Seems to me it might be sensible to add a new ctor AuthScope(HttpHost,
AuthScheme) and consider deprecating the ctors with multiple Strings.
> Wrong creation of AuthScope object
> ----------------------------------
>
> Key: HTTPCLIENT-1056
> URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1056
> Project: HttpComponents HttpClient
> Issue Type: Bug
> Components: HttpClient
> Affects Versions: 4.1 Final
> Reporter: Gaurav Singhal
> Labels: bug
>
> Class Name: org.apache.http.client.protocol.RequestAuthCache
> Line #: 118-119
> Issue: Want to create a new Object of AuthScope by passing host name, port
> and scheme name but due to incorrect constructor call, Getting a object with
> realm name as scheme name.
> Current Code: Credentials creds = credsProvider.getCredentials(new
> AuthScope(host.getHostName(), host.getPort(), null, schemeName));
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]