Details
-
Bug
-
Resolution: Done
-
Major
-
3.6.0.Final
-
None
Description
When I try to create a node type with a property definition with BOOLEAN as type, and add a constraint to it f.e. 'true', I expected I was eligible to add the node type and the constraint got accepted.
However it did not, instead I got this exception thrown.
java.lang.IllegalStateException: Invalid property type: 6 at org.modeshape.jcr.JcrPropertyDefinition.createChecker(JcrPropertyDefinition.java:485) at org.modeshape.jcr.JcrPropertyDefinition.satisfiesConstraints(JcrPropertyDefinition.java:266) at org.modeshape.jcr.RepositoryNodeTypeManager$NodeTypes.findPropertyDefinition(RepositoryNodeTypeManager.java:1453) at org.modeshape.jcr.AbstractJcrNode.setProperty(AbstractJcrNode.java:1773) at org.modeshape.jcr.AbstractJcrNode.setProperty(AbstractJcrNode.java:1460) at org.modeshape.jcr.AbstractJcrNode.setProperty(AbstractJcrNode.java:108)
Reproducible log and error in unit test using file system, directory gets cleaned up after every tearDown.