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

LockImpl getLockToken missing scenario

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not A Problem
    • Affects Version/s: 2.6.5, 2.10.1
    • Fix Version/s: None
    • Component/s: None

      Description

      Code in question for org.apache.jackrabbit.core.lock.LockImpl

          public String getLockToken() {
              if (!info.isSessionScoped() && (info.isLockHolder(node.getSession()) || isAdminUser(node.getSession()))) {
                  return info.getLockToken();
              } else {
                  return null;
              }
          }
      

      So if the a Non-Admin User creates a lock and the session is not scoped (i.e. explicit locking), they are unable to retrieve the lock...which seems counter-intuitive since the lockholder is very much related to session instantiated in the first place.

      Shouldn't it be related more to session.getUserID()?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              flavouski Flavel Heyman
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: