Expand my Community achievements bar.

SOLVED

Cancelling inheritance of a liveCopy breaks child LiveCopies

Avatar

Level 1

Hi, we use AEM6.2 and we have latest update cq-6.2.0-sp1-cfp-2.0 installed. We have swedish site /content/site/sv and we have an english part created using liveCopy. When we try to unlock certain property inheritance for certain live copy page we have an exception: 

23.03.2017 08:57:00.768 *ERROR* [10.249.162.10 [1490255820759] POST /content/site/en/about/press-department-test/jcr:content.msm.conf HTTP/1.1] com.day.cq.wcm.msm.impl.servlets.LiveRelationshipServlet Request to edit PropertyInheritance of non LiveRelation at /content/site/en/about/about/press-department-test/jcr:content: abort
23.03.2017 08:57:00.769 *ERROR* [10.249.162.10 [1490255820759] POST /content/site/en/about/about/press-department-test/jcr:content.msm.conf HTTP/1.1] com.day.cq.wcm.msm.impl.servlets.LiveRelationshipServlet Error while updating relationship
java.lang.IllegalStateException: Can not attach Resource at /content/site/en/about/about/press-department-test/jcr:content either already a LiveCopy or no Source

We use classic UI. After some investigation i could recreate the same behaviour by following these steps:

1. Create a live copy under "/content/TEST" page
  * Title: en_
  * Name: en_
  * source: e.g.: /content/site/sv
  * Exclude sub page: yes
  * Sync config -> Rollout config = "Push on modify"
2 Create a sub page:
  2.1 Select /content/TEST/en_
  2.2 Click “new”->"Create Live Copy"
    * Missing pages: Vi erbjuder
    * Exclude sub pages: yes
3 Change inheritance of en_:
  3.1 Open properties of en_
  3.2 Goto "Live Copy" tab
  3.3 Turn “Live Copy inheritance” on, press OK
  3.4 Open properties again, turn “Live Copy inheritance” off back again, press OK
4 Click on /content/TEST/en_/Vi erbjuder
5 Open properties of familj
6 Try to unlock "Title"

Result: exception shown

7 Go to Live Copy folder

Actual result: "Live copy from" field is empty
Expected: Should have a value

See screenshots in attachments.

-----------

I`ve found what is the cause of it:

When turning off liveCopy inheritance of any node in the live copy, all sub-pages are changing. Changes are:
1) If page has cq:LiveSyncConfig node then delete cq:LiveSync mixin type and cq:LiveSyncConfig node.  cq:LiveRelationship mixin type stays there - page still considered as a live copy, broken.
2) If page has no cq:LiveSyncConfig node then delete cq:LiveRelationship mixin type. Page becomes simple - not a live copy.

------------

Thanks in advance.

1 Accepted Solution

Avatar

Correct answer by
Level 9

Hi,

It sounds bug. Please report to official support team via https://daycare.day.com/home/createaticket.html.

Thanks,

View solution in original post

2 Replies

Avatar

Correct answer by
Level 9

Hi,

It sounds bug. Please report to official support team via https://daycare.day.com/home/createaticket.html.

Thanks,

Avatar

Level 1

So have you filed a bug and has it been resolved? It seems like the issues you described are still there...

Or maybe you found a way to circumvent this in some other fashion?