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

Admin cannot create versions on nodes for which he is the lockowner

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.10.1
    • None
    • locks
    • None

    Description

      Admin cannot create versions on nodes locked by himself or other users. This is similar to OAK-2747.

      VersioningTest.java

      public void testCheckInCheckoutLocked() throws Exception {
      
              n1.addMixin(mixLockable);
              n1.getSession().save();
      
              Session adminSession = getHelper().getSuperuserSession();
              Node n = adminSession.getNode(n1.getPath());
              n.lock(true, false);
              n.getSession().save();
              adminSession.logout();
      
              adminSession = getHelper().getSuperuserSession();
              Node na = adminSession.getNode(n1.getPath());
              na.checkin();
              na.checkout();
          }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            mpetria Marius Petria
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: