Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 57D029951 for ; Wed, 14 Dec 2011 17:32:03 +0000 (UTC) Received: (qmail 12257 invoked by uid 500); 14 Dec 2011 17:32:02 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 12171 invoked by uid 500); 14 Dec 2011 17:32:02 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 12164 invoked by uid 99); 14 Dec 2011 17:32:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2011 17:32:02 +0000 X-ASF-Spam-Status: No, hits=-2001.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Dec 2011 17:31:53 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E6D08112E63 for ; Wed, 14 Dec 2011 17:31:30 +0000 (UTC) Date: Wed, 14 Dec 2011 17:31:30 +0000 (UTC) From: "Julian Reschke (Commented) (JIRA)" To: dev@jackrabbit.apache.org Message-ID: <1899704089.11805.1323883890946.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <5100067.156451294219425338.JavaMail.jira@thor> Subject: [jira] [Commented] (JCR-2859) Make open scoped locks recoverable MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-2859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13169516#comment-13169516 ] Julian Reschke commented on JCR-2859: ------------------------------------- > Attached a patch. If the session is an admin session and lock is open scoped the session will be the lock holder so it can be unlocked. I think this is problematic. Consider processes running in admin sessions trying to synchronize/reserve using locks. If all admin locks are essentially shared by all admin sessions, this will break big time. > Make open scoped locks recoverable > ---------------------------------- > > Key: JCR-2859 > URL: https://issues.apache.org/jira/browse/JCR-2859 > Project: Jackrabbit Content Repository > Issue Type: New Feature > Components: locks > Affects Versions: 2.2 > Reporter: Carsten Ziegeler > Assignee: Julian Reschke > Attachments: JCR-2859.patch, OpenScopeLockTest.java > > > The lock tokens for open scoped locks are currently tied to the session which created the lock. If the session dies (for whatever reason) there is no way to recover the lock and unlock the node. > There is a theoretical way of adding the lock token to another session, but in most cases the lock token is not available. > Fortunately, the spec allows to relax this behaviour and I think it would make sense to allow all sessions from the same user to unlock the node - this is still in compliance with the spec but would make unlocked locked nodes possible in a programmatic way. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira