You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Oleg Kalnichevski (JIRA)" <ji...@apache.org> on 2016/03/24 16:09:25 UTC
[jira] [Resolved] (HTTPCLIENT-1733) http component redirect fails
when redirection URL contains not url encoded params
[ 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