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 "Patrick Fauchere (JIRA)" <ji...@apache.org> on 2017/05/04 12:50:04 UTC
[jira] [Created] (OAK-6170) Checkin function doesn't verify the
node is locked when checkout does
Patrick Fauchere created OAK-6170:
-------------------------------------
Summary: 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
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
(v6.3.15#6346)