hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Tilma (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HTTPCLIENT-1209) remove dots form url when following a redirect
Date Fri, 22 Jun 2012 08:07:42 GMT
Martin Tilma created HTTPCLIENT-1209:

             Summary: remove dots form url when following a redirect
                 Key: HTTPCLIENT-1209
                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1209
             Project: HttpComponents HttpClient
          Issue Type: Improvement
          Components: HttpClient
    Affects Versions: 4.1.3
            Reporter: Martin Tilma
            Priority: Minor

I'm writing a test client for my application. After a POST to the application a redirect is
send containing "../" in the url.

To follow the redirect I use the LaxRedirectStrategy. I also expected that the url is normalized
and the "../" is removed (like browsers do). But this isn't the case.

When the application redirects the client to: http://localhost/content/profile/../123456789
a get request to exactly that url is made resulting in a 404 at our application. 

I extended the LaxRedirectStrategy and added as work arround:
URIUtils.resolve(super.getLocationURI(request, response, context), "")

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

View raw message