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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 3.6.0.Final, 3.3.x-prod-ip6.0
    • 3.5.0.Final
    • JCR
    • None

      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)
      

              hchiorean Horia Chiorean (Inactive)
              hchiorean Horia Chiorean (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: