-
Bug
-
Resolution: Done
-
Blocker
-
3.2.0.Final
-
None
In some cases can be interesting to remove the mix:versionable type from a node.
jcrSession.getWorkspace().getVersionManager().checkout("/" + id);
jcrSession.getNode("/" + id).removeMixin("mix:versionable");
But we can get this exception:
javax.jcr.nodetype.ConstraintViolationException: Cannot find a definition for the property named 'jcr:versionHistory' on the node at '/test1' with primary type 'nt:file' and mixin types: [mix:mimeType,mix:lastModified,mix:title] at org.modeshape.jcr.AbstractJcrNode.removeMixin(AbstractJcrNode.java:2534) at
- relates to
-
MODE-1839 Add posibility to remove version history when versionable node has only root version
- Resolved