Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2438

org.modeshape.jcr.AbstractJcrNode.createPatternsFor(String...) does not escape "+"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.3.0.Final
    • 4.2.0.Final
    • JCR
    • None

      Short: Method createPatternsFor(String...) in org.modeshape.jcr.AbstractJcrNode does not escape the "+" character.

      Full:
      There are the nodes:
      /folder/node+1
      /folder/node+2

      The result of calling

      folder.getNodes("node+*")
      

      will be an empty iterator because createPatternsFor(String...) does not escape the "+" and the resulting regular expression would be

      node+.*

      Instead it has to be

      node\\+.*

              hchiorean Horia Chiorean (Inactive)
              jkraushaar Jochen Kraushaar (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: