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 "Nitin Gupta (Jira)" <ji...@apache.org> on 2022/12/21 03:40:00 UTC

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

     [ https://issues.apache.org/jira/browse/OAK-9970?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nitin Gupta closed OAK-9970.
----------------------------

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