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

LockInfo.logginOut(SessionImpl): javadoc does not correspond to executed code

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.0
    • locks
    • None

    Description

      /**

      • {@inheritDoc}
      • <p/>
      • When the owning session is logging out, we have to perform some
      • operations depending on the lock type.
      • (1) If the lock was session-scoped, we unlock the node.
      • (2) If the lock was open-scoped, we remove the lock token
      • from the session.
        */
        public void loggingOut(SessionImpl session) {
        if (live) {
        if (sessionScoped) { lockMgr.unlock(this); }

        else

        Unknown macro: { if (session.equals(lockHolder)) { lockHolder = null; } }

        }
        }

      if (2) is true, the lockToken is not removed from the session (at least not within the method).

      regards
      angela

      Attachments

        Activity

          People

            angela Angela Schreiber
            angela Angela Schreiber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: