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

Incorrect regexp parsing when retrieving nodes via the node.getNodes() method

    Details

      Description

      Attempting to retrieve a child node which has SNS using the following call:

      root.getNodes("*[2])
      

      produces the following exception:

      javax.jcr.RepositoryException: The "*[2]" name pattern contained the '[' character, which is not allowed in a name pattern
      	at org.modeshape.jcr.AbstractJcrNode.createPatternsFor(AbstractJcrNode.java:930)
      	at org.modeshape.jcr.AbstractJcrNode.getNodes(AbstractJcrNode.java:891)
      	at org.modeshape.jcr.AbstractJcrNode.getNodes(AbstractJcrNode.java:883)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                hchiorean Horia Chiorean
                Reporter:
                hchiorean Horia Chiorean
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: