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

[jira] [Created] (HTTPCLIENT-1214) DecompressingHttpClient getHttpHost method uses wrong URI component

Jan Rosczak created HTTPCLIENT-1214:
---------------------------------------

             Summary: DecompressingHttpClient getHttpHost method uses wrong URI component
                 Key: HTTPCLIENT-1214
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1214
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient
    Affects Versions: 4.2 Final
            Reporter: Jan Rosczak


In the getHttpHost method a HttpHost is constructed from the request URI:

        URI uri = request.getURI();
        return new HttpHost(uri.getAuthority());

The authority of an URI is defined as[user-info@]host[:port] but the constructor of HttpHost only expects a hostname. 

--
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-1214) DecompressingHttpClient getHttpHost method uses wrong URI component

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

Oleg Kalnichevski resolved HTTPCLIENT-1214.
-------------------------------------------

       Resolution: Fixed
    Fix Version/s: 4.2.1

Fixed in 4.2.1. Please upgrade and re-test.

Oleg
                
> DecompressingHttpClient getHttpHost method uses wrong URI component
> -------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1214
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1214
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.2 Final
>            Reporter: Jan Rosczak
>             Fix For: 4.2.1
>
>
> In the getHttpHost method a HttpHost is constructed from the request URI:
>         URI uri = request.getURI();
>         return new HttpHost(uri.getAuthority());
> The authority of an URI is defined as[user-info@]host[:port] but the constructor of HttpHost only expects a hostname. 

--
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