[
https://issues.apache.org/jira/browse/JCRVLT-368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16948304#comment-16948304
]
Konrad Windszus commented on JCRVLT-368:
----------------------------------------
The underlying exception is thrown from {{DefaultPropertyPathFilter}} and
{{DefaultPathFilter}}. I think it would be reasonable to throw
{{ConfigurationException}} from the constructors (or rather the underlying
{{DefaultPathFilter.setPattern}}).
> DefaultWorkspaceFilter.readFilter(Element) might throw
> j.u.r.PatternSyntaxException
> -----------------------------------------------------------------------------------
>
> Key: JCRVLT-368
> URL: https://issues.apache.org/jira/browse/JCRVLT-368
> Project: Jackrabbit FileVault
> Issue Type: Improvement
> Components: vlt
> Reporter: Konrad Windszus
> Assignee: Konrad Windszus
> Priority: Minor
> Fix For: 3.4.2
>
>
> The {{DefaultWorkspaceFilter.readFilter(Element)}}
> (https://github.com/apache/jackrabbit-filevault/blob/c6a8b816a31f3347113b8a8d4eac281faf0a6d5b/vault-core/src/main/java/org/apache/jackrabbit/vault/fs/config/DefaultWorkspaceFilter.java#L438)
> might throw {{java.util.regex.PatternSyntaxException}} in case of an invalid
> regular expression (e.g. for {{[}}). Instead a {{ConfigurationException}}
> should be thrown in that case.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)