Policies overriding issue for editable templates | Community
Skip to main content
Anudeep_Kumar
Level 2
July 19, 2023
Solved

Policies overriding issue for editable templates

  • July 19, 2023
  • 1 reply
  • 1180 views

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sady_Rifat

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.

1 reply

Sady_Rifat
Community Advisor
Sady_RifatCommunity AdvisorAccepted solution
Community Advisor
July 19, 2023

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.
Anudeep_Kumar
Level 2
July 19, 2023

Hi @sady_rifat ,

Thanks for the solution. surely will try this.

 

Regards,
Anudeep