Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

Can't cancel inheritance for child nodes

Avatar

Level 3

Hi, 

We are using AEM 6.1 with SP2. 

When cancelling inheritance on a component, the child nodes are not being cancelled, which ends up overriding data during rollout.  According to the documentation - https://docs.adobe.com/docs/en/aem/6-1/develop/platform/custom-nodetypes.html#cq:LiveSyncCancelled - there is an additional boolean property called cq:isCancelledForChildren. Looking at the form that is posted to Sling when cancelling inheritance this form data is being sent: 

  1. msm:status/msm:isCancelled:
    true
  2. msm:status/msm:isCancelledForChildren:
    false

Where is this property being set/read from? How can we change that property?

When adding cq:isCancelledForChildren = true manually to the component jcr:content node and then rolling out, the changes are NOT being overwritten. But when re-enabling inheritance or cancelling this property is being removed. 

Any help with why this is happening and how we can avoid this, is greatly appreciated. 

Thanks, Alex

  1.  
5 Replies

Avatar

Level 4

Can someone provide the correct link for the above?

Avatar

Level 10

So it works when you manually set the cq:isCancelledForChildren property? 

Avatar

Level 4

yes smacdonald2008, it works after manually breaking the inheritance of the parent component and then child components and then deleting the child components which sets the cq:isCancelledForChildren property, but why do we need to do this manual work? Shouldn't the canceling the inheritance from a parent should also automatically cancel the inheritance for the child nodes as well? Is this is a bug in the system or is there a reason for it?