You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Marius Petria (JIRA)" <ji...@apache.org> on 2015/08/10 13:55:46 UTC

[jira] [Created] (JCR-3897) Admin cannot create versions on nodes for which he is the lockowner

Marius Petria created JCR-3897:
----------------------------------

             Summary: Admin cannot create versions on nodes for which he is the lockowner
                 Key: JCR-3897
                 URL: https://issues.apache.org/jira/browse/JCR-3897
             Project: Jackrabbit Content Repository
          Issue Type: Bug
          Components: locks
    Affects Versions: 2.10.1
            Reporter: Marius Petria


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

VersioningTest.java
{noformat}
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();
    }
{noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)