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 2023/08/30 06:49:00 UTC

[jira] [Comment Edited] (OAK-9970) Internal code calls LockManager.isLocked(String)

    [ https://issues.apache.org/jira/browse/OAK-9970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17760227#comment-17760227 ] 

Julian Reschke edited comment on OAK-9970 at 8/30/23 6:48 AM:
--------------------------------------------------------------

trunk: (1.46.0) [e8e484c650|https://github.com/apache/jackrabbit-oak/commit/e8e484c6501e9918cbf20753595fc27bb8d5b079]
1.22: [99d9de5ab5|https://github.com/apache/jackrabbit-oak/commit/99d9de5ab501b0ae468d5f24f8be8293ab2e6fc9]



was (Author: reschke):
trunk: (1.46.0) [e8e484c650|https://github.com/apache/jackrabbit-oak/commit/e8e484c6501e9918cbf20753595fc27bb8d5b079]

> Internal code calls LockManager.isLocked(String)
> ------------------------------------------------
>
>                 Key: OAK-9970
>                 URL: https://issues.apache.org/jira/browse/OAK-9970
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: jcr
>            Reporter: Angela Schreiber
>            Assignee: Angela Schreiber
>            Priority: Major
>             Fix For: 1.46.0, 1.22.17
>
>
> similar to OAK-9966 for {{Node.isLocked}} which calls {{LockManager.isLocked(String absPath)}}. This results in the {{Tree}} object to be resolved again from the absolute path, when it was already there for the {{Node}} object.
> the same applies for
> - version operations that check for the node being locked
> - import operation that checks for  the target node being locked.
> NOTE: this pattern applies for all other lock related methods. but since JCR locking is not properly implemented, i suggest to focus on the {{Node.isLocked}} and {{LockManager.isLocked}} methods, which are called frequently in code that is just performing regular writes.
> cc: [~joerghoh]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)