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

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

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.2.0.Final
    • Fix Version/s: 4.3.0.Final
    • Component/s: JCR
    • Labels:
      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\\+.*

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                hchiorean Horia Chiorean
                Reporter:
                jkraushaar Jochen Kraushaar
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: