[ 
https://issues.apache.org/jira/browse/JCLOUDS-1449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16623676#comment-16623676
 ] 

Blagoi Anastasov commented on JCLOUDS-1449:
-------------------------------------------

Hi guys, I figured out that when connecting via http between http proxy and the 
requested resource, it passes without any errors. After that it passes via 
https, because we have by default in ProxyForURI object - isJvmProxyEnabled. It 
looks like that JVM remembers the first connection, and then uses it again. I 
don't think that should happen.

> HTTP Proxy authentication fails
> -------------------------------
>
>                 Key: JCLOUDS-1449
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1449
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-core
>    Affects Versions: 2.1.1
>            Reporter: Blagoi Anastasov
>            Priority: Major
>
> {color:#333333}When using http proxy, which requires authentication, in order 
> to connect with s3, it fails with {color}
> {color:#808000}{color:#000000}Caused by: 
> org.jclouds.http.HttpResponseException: request: HEAD 
> https://xxx.xxx.xxx.xxx.s3.ap-northeast-1.amazonaws.com/ HTTP/1.1 failed with 
> response: HTTP/1.1 407 Proxy Authentication Required{color}
> {color:#000000}at 
> {color}{color:#000000}atorg.jclouds.aws.handlers.ParseAWSErrorFromXmlContent.handleError(ParseAWSErrorFromXmlContent.java:63)
> at 
> org.jclouds.http.handlers.DelegatingErrorHandler.handleError(DelegatingErrorHandler.java:65)
> at 
> org.jclouds.http.internal.shouldContinue(BaseUrlHttpCommandExecutorService.java:125)
> at 
> org.jclouds.http.internal.BaseUrlHttpCommandExecutorService.invoke(BaseUrlHttpCommandExecutorService.java:94)
> at org.jclouds.rest.internal.InvokeHttpMethod.invoke(InvokeHttpMethod.java:91)
> at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:74)
> at org.jclouds.rest.internal.InvokeHttpMethod.apply(InvokeHttpMethod.java:45)
> at 
> org.jclouds.rest.internal.DelegatesToInvocationFunction.handle(DelegatesToInvocationFunction.java:156)
> at 
> org.jclouds.rest.internal.DelegatesToInvocationFunction.invoke(DelegatesToInvocationFunction.java:123)
> at com.sun.proxy.$Proxy173.listBucket(Unknown Source){color}{color}
>  
> {color:#808000}{color:#000000}{color:#333333}It works with SOCKS proxy with 
> authentication, but fails with HTTP proxy with authentication
> {color}{color}{color}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to