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

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

    XMLWordPrintable

Details

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

    Description

      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\\+.*

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: