Details
-
Bug
-
Resolution: Done
-
Blocker
-
4.0.0.Beta1
-
None
Description
When *re*starting a repository after at least one index definition has been defined, the index definitions cannot be effectively read. Reading the nodes under "/jcr:system/mode:indexes" results in the following exception:
javax.jcr.RepositoryException: No valid property definition on node '/jcr:system/mode:indexes/local/ntusysname' with primary type 'mode:index' and mixin types [] for the property: mode:kind="VALUE" at org.modeshape.jcr.AbstractJcrNode.findJcrProperties(AbstractJcrNode.java:2035) at org.modeshape.jcr.AbstractJcrNode.getProperties(AbstractJcrNode.java:2043) at org.modeshape.jcr.JcrSystemNode.getProperties(JcrSystemNode.java:25) at org.modeshape.jcr.api.JcrTools.printSubgraph(JcrTools.java:555)
There is a bug in the "modeshape-builtins.cnd" file, and the index-related node types do not match the structure written to the repository when index definitions are registered.
This prevents a repository from properly restarting.