You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Timothee Maret (Jira)" <ji...@apache.org> on 2021/01/31 01:05:00 UTC

[jira] [Commented] (JCRVLT-500) DefaultPathFilter#isAbsolute fails with quoted patterns

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

Timothee Maret commented on JCRVLT-500:
---------------------------------------

Added a link to a unit and integration test that reproduce the issue.

> DefaultPathFilter#isAbsolute fails with quoted patterns
> -------------------------------------------------------
>
>                 Key: JCRVLT-500
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-500
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 3.4.8
>            Reporter: Timothee Maret
>            Priority: Major
>
> DefaultPathFilter#isAbsolute and DefaultPathFilter#translate decide if the pattern corresponds to an absolute path with
> {code}
> pattern.startsWith("/")
> {code}
> This implementation fails when passing a quoted pattern as noted in SLING-10088.
> Indeed, the path {{/some/great/content}} gets quoted as {{\Q/some/great/content\E}} which does not start with a {{/}} although the pattern corresponds to an absolute path.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)