hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Angus Ng (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HTTPCLIENT-1066) HTTPClient 4.1 auto slash removal
Date Tue, 08 Mar 2011 03:30:59 GMT

    [ https://issues.apache.org/jira/browse/HTTPCLIENT-1066?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13003797#comment-13003797

Angus Ng commented on HTTPCLIENT-1066:

Thanks Oleg. It seems all working fine with me now.


> HTTPClient 4.1 auto slash removal
> ---------------------------------
>                 Key: HTTPCLIENT-1066
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1066
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpClient
>    Affects Versions: 4.0.3, 4.1 Final
>            Reporter: Angus Ng
>            Priority: Minor
>             Fix For: 4.2 Final
> I've put the same comment as in the following issue.
> https://issues.apache.org/jira/browse/HTTPCLIENT-929?focusedCommentId=13001748#comment-13001748
> I am using httpclient 4.1. I had a problem with this fix. In DefaultRequestDirector.rewriteRequestURI
method, for non-proxied URI and when it is a absolute URI, it will call the URIUtils.rewriteURI,
which then take the "RawPath" from an uri and normalize it. So when I pass an uri, for example,
http://www.whatever.com/1//3, it will automatically remove the extra slash and become http://www.whatever.com/1/3.
I've got a REStful service to accept the uri (/{param1}/{param2}/{param3}) and it takes when
there is an empty value past in. Now because of the auto slash removal, the "3" value shift
left for a position and match to the {param2}. I wouldn't say the above solution is wrong,
but I guess it should not change what value that user pass in.

This message is automatically generated by JIRA.
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