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

Unable to remove mixin mix:versionable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 3.3.0.Final
    • 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 
      

              hchiorean Horia Chiorean (Inactive)
              lponce@redhat.com Lucas Ponce
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: