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

Exception when trying to remove mix:lastModified

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.1.0.Final
    • 3.8.0.Final, 4.0.0.Final
    • JCR
    • None
    • 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.)

    Description

      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)
          ...
      

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: