You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2014/02/28 03:05:19 UTC

[jira] [Commented] (FELIX-4440) dots in pathinfo's are removed for include requests

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