Hi Everyone,
I'm working on AEM 6.5 and faced below issue, and thanks for the help in advance.
So here is the situation:
Let's assume there is an author A who has authored a page and locked it. I am an author B who is impersonated as admin. Now I'm trying to edit a particular component on that page. That component is associated with a servlet which changes node name based on the input in the component. In that servlet, there is a logic which unlocks that page path, modifies the node name and then locks it again.
In normal situation it is working fine as expected but as soon as I impersonate as admin and try to make some changes it throws the exception
javax.jcr.lock.LockException: Not an owner of the lock
So, what can be the reason and solution for this problem?
Solved! Go to Solution.
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi @Jangra98
Unfortunately only lock owner or admin unlock the page (remove the lock).
Latest update we received from Adobe on this through day care -
We have confirmed from the engg team and same has been written in the docs And an evaluation for improvement on this feature is been checked on this JIRA (CQ-4236738).
Locking a page can be performed when impersonating a user. However a page locked in this way can only then be unlocked as the user who was impersonated or a user with administrator privileges.
Pages cannot be unlocked by impersonating the user who locked the page.
Also same has been written under[1].
https://helpx.adobe.com/experience-manager/6-3/sites/authoring/using/editing-content.html
Please follow below link to unlock page
https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/unlocking-a-page-with-syst...
Lock and unlock page API will help here
Hi @Jangra98
Unfortunately only lock owner or admin unlock the page (remove the lock).
Latest update we received from Adobe on this through day care -
We have confirmed from the engg team and same has been written in the docs And an evaluation for improvement on this feature is been checked on this JIRA (CQ-4236738).
Locking a page can be performed when impersonating a user. However a page locked in this way can only then be unlocked as the user who was impersonated or a user with administrator privileges.
Pages cannot be unlocked by impersonating the user who locked the page.
Also same has been written under[1].
https://helpx.adobe.com/experience-manager/6-3/sites/authoring/using/editing-content.html
Remark to AEM CS: members of the "administrators" group can do it there.
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies