You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Chetan Mehrotra (JIRA)" <ji...@apache.org> on 2014/12/14 08:17:13 UTC
[jira] [Resolved] (OAK-2351) Property name regex should only be
applied on property name
[ https://issues.apache.org/jira/browse/OAK-2351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chetan Mehrotra resolved OAK-2351.
----------------------------------
Resolution: Fixed
* trunk - http://svn.apache.org/r1645424
* 1.0 - http://svn.apache.org/r1645425
> Property name regex should only be applied on property name
> -----------------------------------------------------------
>
> Key: OAK-2351
> URL: https://issues.apache.org/jira/browse/OAK-2351
> Project: Jackrabbit Oak
> Issue Type: Improvement
> Components: oak-lucene
> Reporter: Chetan Mehrotra
> Assignee: Chetan Mehrotra
> Priority: Minor
> Fix For: 1.0.9, 1.1.4
>
>
> Given following property definition
> {noformat}
> + indexRules
> - jcr:primaryType = "nt:unstructured"
> + nt:base
> + properties
> - jcr:primaryType = "nt:unstructured"
> + allProps
> - name = ".*"
> - isRegexp = true
> - nodeScopeIndex = true
> {noformat}
> It would return true even for relative property names like "foo/bar" and a wrong index would be picked up. Logically the regex is only applicable on property name and should not be applied on relative property. So following scenarios should be supported
> * 'foo/.*' must match property 'foo/bar'
> * 'foo/.*' must not match property 'foo/bar/baz'
> * '.*' must match 'foo'
> * '.*' must not match 'foo/bar'
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)