Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Unlocking a page through impersonation fails!

Avatar

Avatar
Validate 1
Level 3
Ashwin_Raju
Level 3

Likes

7 likes

Total Posts

44 posts

Correct Reply

4 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 3
View profile

Avatar
Validate 1
Level 3
Ashwin_Raju
Level 3

Likes

7 likes

Total Posts

44 posts

Correct Reply

4 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 3
View profile
Ashwin_Raju
Level 3

12-10-2017

Hi,

We are trying a scenario where unlocking a page in AEM 6.3 is failing. PFB the steps followed in a vanilla AEM instance.

  1. Lock a page using a user say author1.
  2. Another user, say author2 impersonates as author1 and tries to unlock the locked page.
  3. Error appears - Unable to unlock page. Error.log - Caused by: javax.jcr.lock.LockException: Not an owner of the lock /content/we-retail/us/en/user/smartlist/jcr:content
  4. Ideally this scenario was working in AEM 5.6 but not working in AEM 6.3

errorSnip.JPG

Please let me know if this is the intended behavior in AEM 6.3 and what will be an alternate solution for the same.

Replies

Avatar

Avatar
Validate 1
Level 3
arjun07180302
Level 3

Likes

14 likes

Total Posts

36 posts

Correct Reply

8 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 3
arjun07180302
Level 3

Likes

14 likes

Total Posts

36 posts

Correct Reply

8 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
arjun07180302
Level 3

12-10-2017

From my experience in my project, either admin OR user with admin rights will be able to unlock the page. A mere impersonation of the person who locked the page does not give you all the access to unlock the page.

Also, did you get a chance looking into some of the options that were discussed in this thread. Unlocking Pages - Alternative to "admin" Account?

Avatar

Avatar
Validate 1
Level 3
Ashwin_Raju
Level 3

Likes

7 likes

Total Posts

44 posts

Correct Reply

4 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 3
View profile

Avatar
Validate 1
Level 3
Ashwin_Raju
Level 3

Likes

7 likes

Total Posts

44 posts

Correct Reply

4 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 3
View profile
Ashwin_Raju
Level 3

27-10-2017

Ideally impersonating as a locked user and unlocking the page was working until before AEM 6.3 but apparently not working now in AEM 6.3. Not sure if there is any change or is it a bug in AEM 6.3. There are other options as well as you had mentioned but the mentioned behavior after impersonating is the one which the customer needed and was working until AEM 6.2.

Avatar

Avatar
Validate 1
Level 3
Ashwin_Raju
Level 3

Likes

7 likes

Total Posts

44 posts

Correct Reply

4 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 3
View profile

Avatar
Validate 1
Level 3
Ashwin_Raju
Level 3

Likes

7 likes

Total Posts

44 posts

Correct Reply

4 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 1
Affirm 3
View profile
Ashwin_Raju
Level 3

19-12-2017

Is there any hotfix available for the same from Adobe? Error log -

Unable to unlock page.

com.day.cq.wcm.api.WCMException: Unable to unlock page.

Caused by: javax.jcr.lock.LockException: Not an owner of the lock

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

378 likes

Total Posts

867 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

378 likes

Total Posts

867 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

16-01-2018

For AEM 6.3, Impersonating and unlocking a page is not allowed and can be treated as a product limitation.

Avatar

Avatar
Level 1
jverheyen
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile

Avatar
Level 1
jverheyen
Level 1

Likes

0 likes

Total Posts

1 post

Correct Reply

0 solutions
View profile
jverheyen
Level 1

17-01-2018

If it is indeed a product limitation, the canUnlock() method on the Page class should return false when checked with an impersonated user; which it doesn't.

So it seems like there's either a bug in the unlock functionality itself, or in the canUnlock() method.

Correct me if I'm wrong.

Avatar

Avatar
Boost 5
Level 3
sureshr19072451
Level 3

Likes

18 likes

Total Posts

31 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile

Avatar
Boost 5
Level 3
sureshr19072451
Level 3

Likes

18 likes

Total Posts

31 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile
sureshr19072451
Level 3

14-05-2018

I feel it's good to have this doc updated with all AEM versions that this issue applies to - How to unlock a locked page

Applies to is still referring to AEM 5.2.x.

kautuksahni

Avatar

Avatar
Boost 5
Level 3
sureshr19072451
Level 3

Likes

18 likes

Total Posts

31 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile

Avatar
Boost 5
Level 3
sureshr19072451
Level 3

Likes

18 likes

Total Posts

31 posts

Correct Reply

5 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Affirm 5
View profile
sureshr19072451
Level 3

29-05-2018

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

Thanks.