hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Stewart (JIRA)" <j...@apache.org>
Subject [jira] Created: (HTTPCLIENT-930) Unencoded redirect URI causes exception when following redirects
Date Fri, 02 Apr 2010 14:24:27 GMT
Unencoded redirect URI causes exception when following redirects

                 Key: HTTPCLIENT-930
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-930
             Project: HttpComponents HttpClient
          Issue Type: Bug
          Components: HttpClient
    Affects Versions: 4.0.1
            Reporter: Ryan Stewart

When HttpClient is set to follow redirects, the DefaultRedirectHandler gets the redirect location
from the appropriate request header and attempts to create a new java.net.URI from it. If
the location contains an invalid URI character, creating the URI fails. For example, if the
redirect location were "/foo?bar=<baz/>", it would fail because the '<' and '>'
are not legal in a URI.

I'm not sure if this should actually be considered a bug in HttpClient, since the website
in question should probably be responsible for encoding the URI appropriately; however, browsers
handle the situation gracefully, and it would be nice if this excellent library would do so
as well.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

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

View raw message