Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-2351

Property name regex should only be applied on property name

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0.9, 1.1.4
    • lucene
    • None

    Description

      Given following property definition

            + indexRules
              - jcr:primaryType = "nt:unstructured"
              + nt:base
                + properties
                  - jcr:primaryType = "nt:unstructured"
                  + allProps
                    - name = ".*"
                    - isRegexp = true
                    - nodeScopeIndex = true
      

      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'

      Attachments

        Activity

          People

            chetanm Chetan Mehrotra
            chetanm Chetan Mehrotra
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: