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 "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2015/04/13 09:23:12 UTC

[jira] [Commented] (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:comment-tabpanel&focusedCommentId=14492005#comment-14492005 ] 

Marcel Reutegger commented on OAK-2747:
---------------------------------------

bq. should de lockowner be able to create versions?

Yes, this should be possible IMO.

bq. should admin be able to create versions even if it is not the lockowner?

I would rather not allow this, but to be consistent with other operations we should probably allow it as well.

> 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)