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

Calling Session.getNodeByIdentifier(String) with a bogus identifier results in a non-JCR exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.7.0.Final, 3.0.0.Alpha1
    • 2.6.0.Final
    • JCR
    • None

      So if I call getNodeByIdentifier("aaaa") this is the exception stack trace:

      17:12:22,020 ERROR [STDERR] org.modeshape.graph.property.InvalidPathException: The path {}aaaa is not an absolute path
      17:12:22,022 ERROR [STDERR]     at org.modeshape.graph.property.basic.AbstractPath.relativeTo(AbstractPath.java:480)
      17:12:22,022 ERROR [STDERR]     at org.modeshape.graph.session.GraphSession.findNodeWith(GraphSession.java:398)
      17:12:22,022 ERROR [STDERR]     at org.modeshape.graph.session.GraphSession.findNodeWith(GraphSession.java:381)
      17:12:22,022 ERROR [STDERR]     at org.modeshape.jcr.SessionCache.findNode(SessionCache.java:532)
      17:12:22,022 ERROR [STDERR]     at org.modeshape.jcr.SessionCache.findJcrNode(SessionCache.java:643)
      17:12:22,022 ERROR [STDERR]     at org.modeshape.jcr.JcrSession.getNode(JcrSession.java:838)
      17:12:22,022 ERROR [STDERR]     at org.modeshape.jcr.JcrSession.getNodeByIdentifier(JcrSession.java:872)
      17:12:22,022 ERROR [STDERR]     at org.modeshape.jcr.JcrSession.getNodeByIdentifier(JcrSession.java:96)
      

      This exception should be wrapped in a RepositoryException.

              rhauch Randall Hauch (Inactive)
              rhauch Randall Hauch (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: