Expand my Community achievements bar.

SOLVED

When trying to edit the page while impersonating as admin throws "Not an owner of the lock" exception.

Avatar

Level 3

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?
 

Topics

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

 

 



Arun Patidar

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

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

 

 



Arun Patidar

Avatar

Employee Advisor

Remark to AEM CS: members of the "administrators" group can do it there.