hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oleg Kalnichevski (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (HTTPCLIENT-1733) http component redirect fails when redirection URL contains not url encoded params
Date Thu, 24 Mar 2016 15:09:25 GMT

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

Oleg Kalnichevski resolved HTTPCLIENT-1733.
-------------------------------------------
    Resolution: Invalid

Yes, this is expected behavior. HttpClient rejects malformed redirect URLs by default.

Oleg

> http component redirect fails when redirection URL contains not url encoded params
> ----------------------------------------------------------------------------------
>
>                 Key: HTTPCLIENT-1733
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1733
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.5.3
>            Reporter: Davide Gesino
>            Priority: Minor
>
> If the Httpclient with "DefaultRedirectStrategy" gets redirected to a URL containing
pipes, or other chars that need to be URL encoded, the DefaultRedirectStrategy will throw
a  ProtocolException("Invalid redirect URI: " + location, ex), as the 
> createLocationURI method at line 188 will create an URI with a "location" not properly
URL encoded.
> This issue is raised also here:
> http://stackoverflow.com/questions/18316242/cannot-process-url-with-vertical-pipe-bar-in-java-apache-httpclient
> Is it an expected behaviour?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message