Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-8740

non-lockable nodes can't be deleted

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 5.7.7, 6.2.12
    • None
    • None

    Description

      We have problem with deleting nodes by 'markAsDeleted' action, f.e. assets and some nodes from content applications. An attempt to delete ends with error:

      javax.jcr.lock.LockException: Unable to perform a locking operation on a non-lockable node.

      We checked the types of nodes and noticed that there is no "mix:lockable" type:
      node.isNodeType(NameConstants.MIX_LOCKABLE) returns false.

      The problem also applies to new assets - we create new assets and they cannot be deleted due to the missing type. It works only when we disable receivers in publishing-core module.

      We are considering adding a mix:lockable type somewhere in markAsDeleted action by:
      node.addMixin(JcrConstants.MIX_LOCKABLE);
      but not sure - Is there any better and safer solution?
      Actually, should all nodes have this type?
      What could be the reason for it disappearance?

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              mlesiak Marek Lesiak
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Bug DoR
                  Task DoD