-
Bug
-
Resolution: Done
-
Major
-
3.0.0.Beta3
-
None
-
None
-
Workaround Exists
-
-
Low
We have some bootstrap code that sets up sequences (longs stored in properties).
In MS 2.8 this worked, in MS 3 Beta3 it throws an exception if the node path does not exist.
Code:
session.propertyExists("/some/random/nonexisting/path/to/property")
Would return false in MS 2.8, but throws the following exception in MS3 B3:
java.lang.RuntimeException Error obtaining root javax.jcr.PathNotFoundException No node exists at path '/some/random/nonexisting/path/to' in workspace "default" org.modeshape.jcr.JcrSession.cachedNode(JcrSession.java:509) org.modeshape.jcr.JcrSession.cachedNode(JcrSession.java:494) org.modeshape.jcr.JcrSession.propertyExists(JcrSession.java:796) d.b.t.c.pages.Index.getTestProp(Index.java:63)