You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Tobias Bocanegra (JIRA)" <ji...@apache.org> on 2015/06/20 00:41:01 UTC
[jira] [Created] (JCRVLT-96)
DefaultWorkspaceFilter.getImportMode(path) should find the closest filter
root
Tobias Bocanegra created JCRVLT-96:
--------------------------------------
Summary: 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
Fix For: 3.1.24
{{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
(v6.3.4#6332)