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

Exception when trying to remove mix:lastModified

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.1.0.Final
    • 3.8.0.Final, 4.0.0.Final
    • JCR
    • None
    • Windows 7, JDK 8u20 64-bit

    • Hide

      1. Create a node.
      2. Add mix:lastModified to the node
      3. Try to remove mix:lastModified from the node

      Show
      1. Create a node. 2. Add mix:lastModified to the node 3. Try to remove mix:lastModified from the node
    • Workaround Exists
    • Hide

      If removing a mixin will make one or more properties invalid due to no property definition, then either some other property definition must be added (via another mixin, perhaps with residual property definitions) or those properties must be removed when the mixin is removed using a single session save() call. (See comments for details.)

      Show
      If removing a mixin will make one or more properties invalid due to no property definition, then either some other property definition must be added (via another mixin, perhaps with residual property definitions) or those properties must be removed when the mixin is removed using a single session save() call. (See comments for details.)

      When trying to remove mix:lastModified from a node I get an exception (version 4.0.0):

      Caused by: javax.jcr.nodetype.ConstraintViolationException: Cannot find a definition for the property named 'jcr:lastModifiedBy' on the node at '{some path}' with primary type '{my type}' and mixin types: []
          at org.modeshape.jcr.AbstractJcrNode.removeMixin(AbstractJcrNode.java:2594)
          ...
      

              hchiorean Horia Chiorean (Inactive)
              rstachowiak_jira Radosław Stachowiak (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: