[JIRA] (WCON-85) When page is renamed/move the references are not updated

390 views
Skip to first unread message

Pablo Castelo (JIRA)

unread,
Aug 12, 2021, 5:14:14 PM8/12/21
to wcm-i...@googlegroups.com
Pablo Castelo created WCON-85:
---------------------------------

Summary: When page is renamed/move the references are not updated
Key: WCON-85
URL: https://wcm-io.atlassian.net/browse/WCON-85
Project: wcm.io Configuration
Issue Type: Bug
Components: Context-Aware Configuration
Affects Versions: Context-Aware Configuration Editor 1.7.6
Reporter: Pablo Castelo


*Context*
When a page is moved or renamed and is referenced in a pathbrowser widget (https://wcm.io/caconfig/editor/usage.html#pathbrowser) inside a configuration below /conf will not be updated. This is caused because the OOTB service user called "reference-adjustment" has no rights in the /conf folder and then can't find & update the properties.
This will be easy to fix by modifying the configuration
"org.apache.sling.jcr.repoinit.RepositoryInitializer~reference-adjustment"

*Expected result*
The references to the page should be properly updated



--
This message was sent by Atlassian Jira
(v1001.0.0-SNAPSHOT#100172)

Stefan Seifert (JIRA)

unread,
Aug 13, 2021, 6:55:47 AM8/13/21
to wcm-i...@googlegroups.com

[ https://wcm-io.atlassian.net/browse/WCON-85?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21332#comment-21332 ]

Stefan Seifert commented on WCON-85:
------------------------------------

you’re right - i can reproduce the problem.

however, this is not a problem that can be fixed within the config editor implementation / deployment package.

recent AEM versions (6.4/6.5/AEMaaCS) are using a service user “reference-adjustment-service”, and this comes preconfigured OOTB with AEM. i think a Adobe support ticket should be created to change the default configuration of it?

how did you fix the ACLs of this service user in your environment in a reliable way?

> When page is renamed/move the references are not updated
> --------------------------------------------------------

Pablo Castelo (JIRA)

unread,
Aug 13, 2021, 7:24:18 AM8/13/21
to wcm-i...@googlegroups.com

[ https://wcm-io.atlassian.net/browse/WCON-85?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21333#comment-21333 ]

Pablo Castelo commented on WCON-85:
-----------------------------------

Not sure if should be modified by Adobe because in an OOtB instance that permission is not needed. That’s the reason because I open the ticket here.

To fix it it’s quite straightforward, just include the configuration in the package

*org.apache.sling.jcr.repoinit.RepositoryInitializer~reference-adjustment.config*

it should contain the OOtB rows and the custom one that we need
scripts=\[
"set\\ ACL\\ for\\ reference-adjustment-service\\r\\nallow\\ jcr:read,jcr:modifyProperties\\ on\\ /content\\ restriction(rep:glob,/_/jcr:content)\\r\\nend",_
_"set\\ ACL\\ for\\ reference-adjustment-service\\r\\nallow\\ jcr:read,jcr:modifyProperties\\ on\\ /content\\ restriction(rep:glob,/_/jcr:content/_)\\r\\nend",_
_"set\\ ACL\\ for\\ reference-adjustment-service\\r\\nallow\\ jcr:read\\ on\\ /etc\\r\\nend",_
_"set\\ ACL\\ for\\ reference-adjustment-service\\r\\nallow\\ jcr:modifyProperties\\ on\\ /etc\\ restriction(rep:glob,/_/jcr:content)\\r\\nend",
"set\\ ACL\\ for\\ reference-adjustment-service\\r\\nallow\\ jcr:modifyProperties\\ on\\ /etc\\ restriction(rep:glob,/_/jcr:content/_)\\r\\nend",
"set\\ ACL\\ for\\ reference-adjustment-service\\r\\nallow\\ rep:write\\ on\\ /content/usergenerated\\r\\nend",
"set\\ ACL\\ for\\ reference-adjustment-service\\r\\nallow\\ jcr:read,jcr:modifyProperties\\ on\\ /content/dam/collections\\r\\nend",
"set\\ ACL\\ for\\ reference-adjustment-service\\r\\nallow\\ jcr:read,jcr:modifyProperties\\ on\\ /conf\\ \\r\\nend", \\

]

Stefan Seifert (JIRA)

unread,
Aug 19, 2021, 11:52:00 AM8/19/21
to wcm-i...@googlegroups.com

[ https://wcm-io.atlassian.net/browse/WCON-85?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21334#comment-21334 ]

Stefan Seifert commented on WCON-85:
------------------------------------

makes sense - but we will not add custom ACLs like this to the deployment package of the caconfig editor or extensions - the administrator of the AEM instances should have full control over the ACLs.

but i still think this is a common use case which should be fixed in AEM itself (and your set of ACLs is only a workaround that can be applied until this is fixed). for example, create a structure component in an editable template and assign an asset to it. if the asset is moved, the references is not updated, image reference is broken.

we have the same requirement for on of our projects, i’ve created an adobe support ticket.

> When page is renamed/move the references are not updated
> --------------------------------------------------------
>
> Key: WCON-85
> URL: https://wcm-io.atlassian.net/browse/WCON-85
> Project: wcm.io Configuration
> Issue Type: Bug
> Components: Context-Aware Configuration
> Affects Versions: Context-Aware Configuration Editor 1.7.6
> Reporter: Pablo Castelo
>
> *Context*
> When a page is moved or renamed and is referenced in a pathbrowser widget (https://wcm.io/caconfig/editor/usage.html#pathbrowser) inside a configuration below /conf will not be updated. This is caused because the OOTB service user called "reference-adjustment" has no rights in the /conf folder and then can't find & update the properties.
> This will be easy to fix by modifying the configuration
> "org.apache.sling.jcr.repoinit.RepositoryInitializer~reference-adjustment"
> *Expected result*
> The references to the page should be properly updated



--
This message was sent by Atlassian Jira
(v1001.0.0-SNAPSHOT#100174)

Pablo Castelo (JIRA)

unread,
Aug 25, 2021, 10:16:28 AM8/25/21
to wcm-i...@googlegroups.com

[ https://wcm-io.atlassian.net/browse/WCON-85?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=21341#comment-21341 ]

Pablo Castelo commented on WCON-85:
-----------------------------------

I also raised an Adobe Support ticket and I got an answer

{quote}The following Jira ID represents this use case and is already in Engineering's ToDo list: #SITES-1350 - Assets used in a Template are not automatically adjusted when modified.{quote}

I think with that information we can close this defect and wait for the fix in future SP.

Stefan Seifert (JIRA)

unread,
Aug 25, 2021, 12:08:05 PM8/25/21
to wcm-i...@googlegroups.com

[ https://wcm-io.atlassian.net/browse/WCON-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Stefan Seifert closed WCON-85.
------------------------------
Resolution: Won't Do

yes, got the same reference today - let's wait then
Reply all
Reply to author
Forward
0 new messages