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:13:13 UTC

[jira] [Created] (OAK-2351) Property name regex should only be applied on property name

Chetan Mehrotra created OAK-2351:
------------------------------------

             Summary: 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)