Uploaded image for project: 'Live Copy'
  1. Live Copy
  2. LIVECOPY-232

Creating livecopy if parent or some of child page is locked throws error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Neutral
    • None
    • None

    Description

      Steps to reproduce

      1.  Try to create livecopy form locked node (f.e. by ab testing)
      2.  Same if child node si locked

      Logs, screenshots, gifs...

      Expected results

      livecopy is created withour error

      Justify non-trivial expectations with a link to a doc or a relevant discussion.

      Actual results

      error while setting MASTER_CONTENT property because of lock
      livecopy is created but miss parrent

      Workaround

      unlock node by removing variant from ab test etc.

      Development notes

      We will probably need to check if note is locked and temporarily unlock it
      info.magnolia.livecopy.command.CreateLiveCopyCommand#markAsMasterNode
      but as this locking is part of ab testing info.magnolia.abtesting.locking.ContentLockingManager
      I would suggest to disable create LC action for locked node (check for node.isLocked()) and to filter out locked children from recursion.
      These children can be synchronized later by propagate master content change action.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              Unassigned Unassigned
              efochr Evzen Fochr
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD