Expand my Community achievements bar.

lir
lir
Offline
Type
  • All
  • Questions
  • Discussions
  • Ideas
  • Blogs
Filter by user contributions
  • Interesting!, I'll try that and let you know

    Type

    Questions

    Views

    2.3K

    Like

    1

    Replies

    0
  • In any case the question remains:Shouldn't the code below always work on an admin session?According to AEM docs it should, but it does not!Resource pageResource = adminResourceResolver.getResource(pagePath);Page page = pageResource.adaptTo(Page.class);if (page.canUnlock()) { // should always return ...

    Type

    Questions

    Views

    5.5K

    Like

    1

    Replies

    0
  • I can easily use the same "system user" to lock and then later unlock the page without even the need of impersonation, but that would not satisfy this requirement:- The workflow initiator should be able to manually unlock the page at any time, no matter the state of the workflow. (he can't, unless m...

    Type

    Questions

    Views

    5.5K

    Like

    1

    Replies

    0
  • Hi,I checked: my system user already has "jcr:lockManagement" privileges.I even gave him "jcr:all" but still he could not unlock the page.Then for the sake of "proof of concept" I tried unlocking by making use of "admin" user via the deprecated :getAdministrativeResourceResolver(adminAuthenticationI...

    Type

    Questions

    Views

    5.5K

    Like

    1

    Replies

    0
  • Where can I grant "jcr:lockManagement" to my system user and on my specific content path?I see no way of doing it in /useradmin Permissions tab of my user.Thanks again

    Type

    Questions

    Views

    5.5K

    Like

    1

    Replies

    0
  • I will, try but not quite optimistic because as a stated earlier:- before asking the question in this forum, I made a quick attempt using the deprecated getAdministrativeResourceResolver(null); to get an admin session (who according to documentation should be able to unlock everything), but unlockin...

    Type

    Questions

    Views

    5.5K

    Like

    1

    Replies

    0
  • Hi, I tested and confirmed that a "system user" cannot unlock a page unless he owns the lock, no matter the permissions I give to him.He owns the lock only if he did the locking, in which case he can unlock.We are using version 6.2This is a problem!! can you please adviseThanks

    Type

    Questions

    Views

    5.5K

    Like

    1

    Replies

    0
  • Thank you for the detailed reply!A few things again about my case:- the user who locks the page is the workflow initiator, NOT a system user- my code needs to unlock the pages, no matter who did lock them.- I'm not sure if in your example, you mapped a different user when unlocking under your "datap...

    Type

    Questions

    Views

    5.5K

    Likes

    2

    Replies

    0
  • 1- an AEM user initiates my custom workflow on a page2- my WorkflowProcess implementation code, locks the page under the initiator session. This means that the initiator owns the lock of that page.3- on a further down workflow step, my code needs to unlock the page, but the AEM user completing the s...

    Type

    Questions

    Views

    5.5K

    Like

    1

    Replies

    0
  • Thanks for the reply,Can't I use the unlock() method of com.day.cq.wcm.api.Page ?I already use Page's lock() method to lock it.

    Type

    Questions

    Views

    5.5K

    Like

    1

    Replies

    0