Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-1765

An admin user should be able to unlock any node

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0
    • jcr
    • None

    Description

      Currently it's not possible for an admin user to unlock another user's node:

      Caused by: javax.jcr.lock.LockException: Not an owner of the lock /path/to/node
      at org.apache.jackrabbit.oak.jcr.lock.LockManagerImpl$8.perform(LockManagerImpl.java:180)
      at org.apache.jackrabbit.oak.jcr.lock.LockManagerImpl$8.perform(LockManagerImpl.java:168)
      at org.apache.jackrabbit.oak.jcr.lock.LockOperation.perform(LockOperation.java:68)
      at org.apache.jackrabbit.oak.jcr.delegate.SessionDelegate.perform(SessionDelegate.java:308)
      at org.apache.jackrabbit.oak.jcr.lock.LockManagerImpl.perform(LockManagerImpl.java:199)
      at org.apache.jackrabbit.oak.jcr.lock.LockManagerImpl.unlock(LockManagerImpl.java:168)
      at org.apache.jackrabbit.oak.jcr.session.NodeImpl.unlock(NodeImpl.java:1190)
      

      I think this case was simply forgotten after OAK-1329.

      Attachments

        1. OAK-1765.patch
          2 kB
          Alex Deparvu

        Activity

          People

            stillalex Alex Deparvu
            stillalex Alex Deparvu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: