You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Marius Petria (JIRA)" <ji...@apache.org> on 2015/04/10 11:55:13 UTC
[jira] [Updated] (OAK-2747) Admin cannot create versions on a
locked page by itself
[ https://issues.apache.org/jira/browse/OAK-2747?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marius Petria updated OAK-2747:
-------------------------------
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?
{code}
@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();
}
{code}
fails with
{noformat}
javax.jcr.lock.LockException: Node at /testroot/node1/node1 is locked
{noformat}
was:
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?
{code}
@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();
}
{code}
> Admin cannot create versions on a locked page by itself
> -------------------------------------------------------
>
> Key: OAK-2747
> URL: https://issues.apache.org/jira/browse/OAK-2747
> Project: Jackrabbit Oak
> Issue Type: Sub-task
> Components: core, jcr
> Affects Versions: 1.2.1
> Reporter: Marius Petria
> Fix For: 1.4
>
>
> 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?
> {code}
> @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();
> }
> {code}
> fails with
> {noformat}
> javax.jcr.lock.LockException: Node at /testroot/node1/node1 is locked
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)