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 "Julian Reschke (Jira)" <ji...@apache.org> on 2019/11/22 14:54:00 UTC
[jira] [Resolved] (OAK-6170) Checkin function doesn't verify the
node is locked when checkout does
[ https://issues.apache.org/jira/browse/OAK-6170?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Reschke resolved OAK-6170.
---------------------------------
Resolution: Not A Problem
Locking is deprecated.
> Checkin function doesn't verify the node is locked when checkout does
> ---------------------------------------------------------------------
>
> Key: OAK-6170
> URL: https://issues.apache.org/jira/browse/OAK-6170
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: core, jcr
> Affects Versions: 1.2.25
> Reporter: Patrick Fauchere
> Priority: Major
> Attachments: OAK-6170.patch
>
>
> Steps to reproduce
> # User A locks a node
> # User B creates a version of this node (checking that node in)
> Result: User A cannot edit the node. User B cannot check-out that node.
> Workaround: User A must unlock the node then User B can do the check-out.
> We may want to verify the node can be unlocked by the user the same way it is done with the _checkout_ function [0,1] before doing the actual _checkin_.
> [0] https://github.com/apache/jackrabbit-oak/blob/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/version/VersionManagerImpl.java#L343-L374
> [1] https://github.com/apache/jackrabbit-oak/blob/trunk/oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/version/VersionManagerImpl.java#L391
--
This message was sent by Atlassian Jira
(v8.3.4#803005)