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

Konrad Windszus commented on JCRVLT-96:
---------------------------------------

The same applies for includes/excludes below a certain filter. Only the first 
matching ones are considered.

> DefaultWorkspaceFilter.getImportMode(path) should find the closest filter root
> ------------------------------------------------------------------------------
>
>                 Key: JCRVLT-96
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-96
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>          Components: Packaging
>    Affects Versions: 3.1.18
>            Reporter: Tobias Bocanegra
>            Priority: Major
>
> {{org.apache.jackrabbit.vault.fs.config.DefaultWorkspaceFilter#getImportMode}}
>  just iterates over all filter sets and returns the import mode of the first 
> that matches.
> for example:
> {noformat}
> <filter root="/foo"/>
> <filter root="/foo/bar" mode="merge" />
> {noformat}
> will return {{REPLACE}} for any path below {{/foo}} because that entry 
> matches first.
> The search should find the closest ancestor, or at least search for the 
> matching set with the deepest path.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to