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

Unable to remove mixin mix:versionable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 3.3.0.Final
    • 3.2.0.Final
    • None

    Description

      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 
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: