Expand my Community achievements bar.

SOLVED

Policies overriding issue for editable templates

Avatar

Level 2

Hi All,

we have a policies stored under "/conf/<path>/settings/wcm/policies" where we have not committed the properties "cq:lastReplicationAction, cq:lastReplicationBy, cq:lastReplicated" for policies. so, when author/authorizer who don't have permission to replicate "/conf" trying to publish a page created using editable template referring the respective policies under "/conf " is giving error stating "not enough rights available to replicate /conf" when trying to publish a page. Could you please let me know what is the correct approach i.e either to commit the above mentioned properties on all policies which will be replaced after every deployment or is there any other way which will not require manual intervention.


The issue we are facing is even if admin publish those templates and policies, they are overriding after every deployment if we use mode=update in filter.xml and if we use mode=merge then newly added component paths in policies are not reflecting in crx/de.

Thanks in advance,

Regards,
Anudeep

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @Anudeep_Kumar ,

If you determine to give policies from code and authors will not edit this, it will always be recommended to use default mode mode=replace. Or in some logic, you can use update mode also. But in some scenarios when Author and Code work under /conf it might break your expectation.

 

The standard practice should be like this:

  • Give the author full access to edit the template (which is recommended by Adobe)
  • If not, maintain all the policies from the code using default mode.
    Sometimes it will allow you to be permitted by author for a quick fix. But as soon as after deployment it will be gone. So, instantly the quick fix code should be updated by the developer.

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

Hello @Anudeep_Kumar ,

If you determine to give policies from code and authors will not edit this, it will always be recommended to use default mode mode=replace. Or in some logic, you can use update mode also. But in some scenarios when Author and Code work under /conf it might break your expectation.

 

The standard practice should be like this:

  • Give the author full access to edit the template (which is recommended by Adobe)
  • If not, maintain all the policies from the code using default mode.
    Sometimes it will allow you to be permitted by author for a quick fix. But as soon as after deployment it will be gone. So, instantly the quick fix code should be updated by the developer.

Avatar

Level 2

Hi @Sady_Rifat ,

Thanks for the solution. surely will try this.

 

Regards,
Anudeep