Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 44101 invoked from network); 5 Jan 2011 16:55:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Jan 2011 16:55:10 -0000 Received: (qmail 51365 invoked by uid 500); 5 Jan 2011 16:55:09 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 51179 invoked by uid 500); 5 Jan 2011 16:55:07 -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 51170 invoked by uid 99); 5 Jan 2011 16:55:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jan 2011 16:55:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Jan 2011 16:55:06 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id p05GskXq000201 for ; Wed, 5 Jan 2011 16:54:46 GMT Message-ID: <15531033.163531294246485990.JavaMail.jira@thor> Date: Wed, 5 Jan 2011 11:54:45 -0500 (EST) From: =?utf-8?Q?C=C3=A9dric_Damioli_=28JIRA=29?= To: dev@jackrabbit.apache.org Subject: [jira] Commented: (JCR-2859) Make open scoped locks recoverable In-Reply-To: <5100067.156451294219425338.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-2859?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D129778= 38#action_12977838 ]=20 C=C3=A9dric Damioli commented on JCR-2859: ------------------------------------- I tend to agree with Stefan that it's the client responsibility to store lo= ck tockens. It's the way I'm managing locks in my applications. But it may happen some failures (either in the client code or in JR code) t= hat make the tocken unrecoverable. Giving the possibility to have some admin feature to cover such cases in IM= HO a very good thing. Right now, I have to stop the application (which may be very annoying in pr= oduction) and modify the locks file by hand. So a big +1 to Jukka's proposal, if client code is able to have access to s= uch special sessions. > 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.0 > Reporter: Carsten Ziegeler > > The lock tokens for open scoped locks are currently tied to the session w= hich created the lock. If the session dies (for whatever reason) there is n= o way to recover the lock and unlock the node. > There is a theoretical way of adding the lock token to another session, b= ut 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 - t= his is still in compliance with the spec but would make unlocked locked nod= es possible in a programmatic way. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.