Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-2859

Make open scoped locks recoverable

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3.7
    • locks
    • None

    Description

      The lock tokens for open scoped locks are currently tied to the session which created the lock. If the session dies (for whatever reason) there is no way to recover the lock and unlock the node.
      There is a theoretical way of adding the lock token to another session, but in most cases the lock token is not available.

      Fortunately, the spec allows to relax this behaviour and I think it would make sense to allow all sessions from the same user to unlock the node - this is still in compliance with the spec but would make unlocked locked nodes possible in a programmatic way.

      Attachments

        1. OpenScopeLockTest.java
          3 kB
          Janandith Uditha Jayawardena
        2. JCR-2859.patch
          5 kB
          Janandith Uditha Jayawardena
        3. JCR-2859.diff
          8 kB
          Julian Reschke
        4. JCR-2859.diff
          14 kB
          Julian Reschke

        Issue Links

          Activity

            People

              reschke Julian Reschke
              cziegeler Carsten Ziegeler
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: