[
https://issues.apache.org/jira/browse/OAK-2351?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Amit Jain closed OAK-2351.
--------------------------
Bulk close for 1.0.9
> 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)