You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by "Davide Gesino (JIRA)" <ji...@apache.org> on 2016/03/24 11:25:25 UTC

[jira] [Created] (HTTPCLIENT-1733) http component redirect fails when redirection URL contains not url encoded params

Davide Gesino created HTTPCLIENT-1733:
-----------------------------------------

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