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

James Leigh commented on HTTPCLIENT-1385:
-----------------------------------------

Case Normalization and Percent-Encoding Normalization is accomplish by decoding 
the path using URI#getPath() and encoding it using URI#getRawPath().

java.net.URI#normalize() is used for Path Segment Normalization, however, if 
there were insufficient non-".." segments preceding the ".." segment, to allow 
their removal, the encoded path may start with one or more ".." segments. 
Because the path is assumed to be an absolute path, these extra ".." segments 
should be removed as part of Path Segment Normalization.

See http://docs.oracle.com/javase/6/docs/api/java/net/URI.html#normalize() for 
more info on extra ".." segments.

James
                
> CacheKeyGenerator Does Not Normalize Path Correctly
> ---------------------------------------------------
>
>                 Key: HTTPCLIENT-1385
>                 URL: https://issues.apache.org/jira/browse/HTTPCLIENT-1385
>             Project: HttpComponents HttpClient
>          Issue Type: Bug
>          Components: HttpCache
>    Affects Versions: 4.3 Beta2
>            Reporter: James Leigh
>              Labels: patch
>             Fix For: 4.3 Final
>
>         Attachments: HTTPCLIENT-1385.patch
>
>
> CacheKeyGenerator fails to normalize paths with they contain a dot segment or 
> percent.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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