Hi,
When moving pages in AEM as a Cloud Service, admin users can move without any workflow, but other users (with full permissions) trigger the "Request to Complete Move Operation" workflow, which fails with:
Permissions provided: read, write, modify, delete, replicate.
Why does the workflow trigger only for non-admins, and what could cause this NPE?
How can we prevent the workflow from triggering for fully privileged users?
Thanks!
Solved! Go to Solution.
Views
Replies
Total Likes
Hi @SanaQu,
Try to grant jcr:read access to:
/conf/global/settings/workflow/models
/var/workflow/models
/var/workflow/instances
/var/workflow/packages
OR
You can disable the workflow from triggering for page move
Go to:
Tools -> Workflow -> Launchers
Find: Request for Move Operation
Disable it or add a condition to bypass certain groups.
Or I would reccomend:
Instead of giving workflow access, create a rule to bypass workflow if the user belongs to an "AEM Content Admin" group using a launcher condition, e.g.:
not (user.memberOf("content-admin-group"))
This prevents workflow execution for trusted users and avoids the NPE.
Hi @SanaQu,
Try to grant jcr:read access to:
/conf/global/settings/workflow/models
/var/workflow/models
/var/workflow/instances
/var/workflow/packages
OR
You can disable the workflow from triggering for page move
Go to:
Tools -> Workflow -> Launchers
Find: Request for Move Operation
Disable it or add a condition to bypass certain groups.
Or I would reccomend:
Instead of giving workflow access, create a rule to bypass workflow if the user belongs to an "AEM Content Admin" group using a launcher condition, e.g.:
not (user.memberOf("content-admin-group"))
This prevents workflow execution for trusted users and avoids the NPE.
Hello @SanaQu ,
When moving pages non-admin users - even with full rights (read, write, modify, delete, replicate) - may trigger the “Request to Complete Move Operation” workflow, whereas admin users do not. This is by design.
Recent product issues (ASSETS) show that the workflow could trigger for unpublished pages/assets or in edge cases, then fail with a NullPointerException due to missing expected objects.
Since the workflow does not trigger for you (as the environment admin) but does work for other users in the admin group, the most likely explanation is that, as the admin, you have access to AEM Workflow, JCR privileges, and OSGi configuration. However, your custom group does not have full workflow execution rights.
To resolve this issue, grant your admin group the following permissions:
1) Paths /conf/global/settings/workflow/models/request_to_complete_move_operation or /conf/global/settings/workflow/models:
2) Path /var/workflow:
jcr:read
jcr:write
jcr:modifyProperties
crx:replicate
3) Add those users to the groups:
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies