hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Leigh (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HTTPCLIENT-1385) CacheKeyGenerator Does Not Normalize Path Correctly
Date Tue, 13 Aug 2013 14:11:49 GMT

    [ 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.

> 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: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org

View raw message