[
https://issues.apache.org/jira/browse/FELIX-4440?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13915358#comment-13915358
]
Tobias Bocanegra commented on FELIX-4440:
-----------------------------------------
btw: what about using
http://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/FilenameUtils.html#normalize(java.lang.String,%20boolean)
instead?
> dots in pathinfo's are removed for include requests
> ---------------------------------------------------
>
> Key: FELIX-4440
> URL: https://issues.apache.org/jira/browse/FELIX-4440
> Project: Felix
> Issue Type: Bug
> Components: HTTP Service
> Reporter: Tobias Bocanegra
>
> the pathinfo of a included request does not contain any dots. this is a
> regression of FELIX-2774 and a bug in
> org.apache.felix.http.base.internal.util.UriUtils#removeDotSegments
> the following test fails:
> {code}
> assertEquals("/test.jsp", removeDotSegments("/test.jsp"));
> {code}
> as it also removes the '.'. according to RFC-3986 section 5.2.4, it should
> only remove the path segments '/./' and '/../'.
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)