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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to