You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Guillaume Castagnino (JIRA)" <ji...@apache.org> on 2012/05/31 11:52:23 UTC

[jira] [Created] (HTTPCLIENT-1200) DecompressingHttpClient fails to request on https host

Guillaume Castagnino created HTTPCLIENT-1200:
------------------------------------------------

             Summary: DecompressingHttpClient fails to request on https host
                 Key: HTTPCLIENT-1200
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1200
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient
    Affects Versions: 4.2 Final
         Environment: Ubuntu / openjdk-7
            Reporter: Guillaume Castagnino


When using the DecompressingHttpClient on a https host, if the client is executed with "execute(HttpUriRequest request, HttpContext context)" or any other execute method that do not provide the HttpHost target, the target is generated from the getHttpHost method.

Problem in this method is that uri.getAuthority() may not contain scheme, nor port. So this results in issuing https queries to port 80.

Follow a patch that fixes this

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] [Updated] (HTTPCLIENT-1200) DecompressingHttpClient fails to request on https host

Posted by "Guillaume Castagnino (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Guillaume Castagnino updated HTTPCLIENT-1200:
---------------------------------------------

    Attachment: fix-host.patch

Fix host generation from the request
                
> DecompressingHttpClient fails to request on https host
> ------------------------------------------------------
>
>                 Key: HTTPCLIENT-1200
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1200
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.2 Final
>         Environment: Ubuntu / openjdk-7
>            Reporter: Guillaume Castagnino
>         Attachments: fix-host.patch
>
>
> When using the DecompressingHttpClient on a https host, if the client is executed with "execute(HttpUriRequest request, HttpContext context)" or any other execute method that do not provide the HttpHost target, the target is generated from the getHttpHost method.
> Problem in this method is that uri.getAuthority() may not contain scheme, nor port. So this results in issuing https queries to port 80.
> Follow a patch that fixes this

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] [Commented] (HTTPCLIENT-1200) DecompressingHttpClient fails to request on https host

Posted by "Guillaume Castagnino (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13286622#comment-13286622 ] 

Guillaume Castagnino commented on HTTPCLIENT-1200:
--------------------------------------------------

Confirmed, looks good to me, my app works fine with this fix

Thanks !
                
> DecompressingHttpClient fails to request on https host
> ------------------------------------------------------
>
>                 Key: HTTPCLIENT-1200
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1200
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.2 Final
>         Environment: Ubuntu / openjdk-7
>            Reporter: Guillaume Castagnino
>             Fix For: 4.2.1
>
>         Attachments: fix-host.patch
>
>
> When using the DecompressingHttpClient on a https host, if the client is executed with "execute(HttpUriRequest request, HttpContext context)" or any other execute method that do not provide the HttpHost target, the target is generated from the getHttpHost method.
> Problem in this method is that uri.getAuthority() may not contain scheme, nor port. So this results in issuing https queries to port 80.
> Follow a patch that fixes this

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


[jira] [Resolved] (HTTPCLIENT-1200) DecompressingHttpClient fails to request on https host

Posted by "Oleg Kalnichevski (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HTTPCLIENT-1200?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Oleg Kalnichevski resolved HTTPCLIENT-1200.
-------------------------------------------

       Resolution: Fixed
    Fix Version/s: 4.2.1

Patch committed with some minor tweaks. Please re-test your application against the latest SVN snapshot.

Oleg  
                
> DecompressingHttpClient fails to request on https host
> ------------------------------------------------------
>
>                 Key: HTTPCLIENT-1200
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1200
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.2 Final
>         Environment: Ubuntu / openjdk-7
>            Reporter: Guillaume Castagnino
>             Fix For: 4.2.1
>
>         Attachments: fix-host.patch
>
>
> When using the DecompressingHttpClient on a https host, if the client is executed with "execute(HttpUriRequest request, HttpContext context)" or any other execute method that do not provide the HttpHost target, the target is generated from the getHttpHost method.
> Problem in this method is that uri.getAuthority() may not contain scheme, nor port. So this results in issuing https queries to port 80.
> Follow a patch that fixes this

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org