Details
Description
Admin cannot create versions even if it is the lockowner.
This is a test to go in VersionManagementTest that shows the issue.
The general questions are:
- should de lockowner be able to create versions?
- should admin be able to create versions even if it is not the lockowner?
@Test public void testCheckInCheckoutLocked() throws Exception { Node n = createVersionableNode(superuser.getNode(path)); n.addMixin(mixLockable); superuser.save(); n = superuser.getNode(n.getPath()); n.lock(true, false); testSession.save(); n = superuser.getNode(n.getPath()); n.checkin(); n.checkout(); }
fails with
javax.jcr.lock.LockException: Node at /testroot/node1/node1 is locked