Details
-
Bug
-
Resolution: Won't Do
-
Neutral
-
None
-
None
Description
Steps to reproduce
- Try to create livecopy form locked node (f.e. by ab testing)
- 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