[jira] [Resolved] (VFS-782) Wrong Proxy Credentials set for http4/http5 client

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Resolved] (VFS-782) Wrong Proxy Credentials set for http4/http5 client

Jannik Zuther (Jira)

     [ https://issues.apache.org/jira/browse/VFS-782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary D. Gregory resolved VFS-782.
---------------------------------
    Fix Version/s: 2.8.0
       Resolution: Fixed

[~satish.bhor]

In git master. Please verify and close this ticket if your use case works.

TY!

> Wrong Proxy Credentials set for http4/http5 client
> --------------------------------------------------
>
>                 Key: VFS-782
>                 URL: https://issues.apache.org/jira/browse/VFS-782
>             Project: Commons VFS
>          Issue Type: Bug
>            Reporter: satish bhor
>            Priority: Major
>             Fix For: 2.8.0
>
>
> {code:java}
> f (proxyAuthData != null) {
>  final UsernamePasswordCredentials proxyCreds = new UsernamePasswordCredentials(
>  UserAuthenticatorUtils.toString(
>  UserAuthenticatorUtils.getData(authData, UserAuthenticationData.USERNAME, null)),
>  UserAuthenticatorUtils.toString(
>  UserAuthenticatorUtils.getData(authData, UserAuthenticationData.PASSWORD, null)));
>  credsProvider.setCredentials(new AuthScope(proxyHost.getHostName(), AuthScope.ANY_PORT),
>  proxyCreds);
> }{code}
> proxy credentials should be taken from proxyAuthData  instead of authData



--
This message was sent by Atlassian Jira
(v8.3.4#803005)