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

Konrad Windszus commented on JCRVLT-378:
----------------------------------------

The problem is the implicit default exclude mentioned in 
https://jackrabbit.apache.org/filevault/filter.html#Order

bq. One caveat is, that the type of the first pattern defines the default 
behavior, so that the filter is more natural to write. If the first pattern is 
include, then the default is exclude and vice versa.

This is a bit fuzzy as it doesn't clarify if a default exclude during export 
would prevent a traversal below the root in the first place. This would 
potentially make the example given in 
https://jackrabbit.apache.org/filevault/filter.html#Order a noop a for export 
as 
{code}
<filter root="/tmp">
    <include pattern=".*\.gif"/>
</filter>
{code}
does not explicitly include {{/tmp}} itself, therefore no child node of 
{{/tmp}} is visited in the first place (and therefore no node path ever ends 
with {{.gif}}.

> WorkspaceFilter.contains return false negative
> ----------------------------------------------
>
>                 Key: JCRVLT-378
>                 URL: https://issues.apache.org/jira/browse/JCRVLT-378
>             Project: Jackrabbit FileVault
>          Issue Type: Bug
>          Components: vlt
>            Reporter: Konrad Windszus
>            Priority: Major
>
> For this workspace filter
> {code}
> <filter root="/var/acs-commons">
>         <include pattern="/var/acs-commons/httpcache"/>
>         <include pattern="/var/acs-commons/httpcache/root"/>
> </filter>
> {code}
> The call of {{WorkspaceFilter.contains("/var/acs-commons")}} returns 
> {{false}}.
> This is unexpected because this is the root path itself.
> So this node should be installed (including all direct properties) and only 
> sub nodes are being filtered with the includes/excludes.



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

Reply via email to