jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <cziege...@apache.org>
Subject Re: Lock token not removed when node is removed
Date Wed, 13 Feb 2008 13:59:54 GMT
Julian Reschke wrote:
> Carsten Ziegeler wrote:
>> Julian Reschke wrote:
>>> Carsten Ziegeler wrote:
>>>> Hi,
>>>>
>>>> when I delete a locked node from the repository, the lock token
>>>> for this node is not removed from the session (I use a session 
>>>> scoped lock and remove the node in the same session).
>>>> Below is the test code.
>>>> ...
>>>
>>> Not sure why that is a problem in practice. Could you elaborate?
>>>
>> Sure :) I think this is a bug - even if the impact is not that huge. 
>> But if you list all your lock tokens you don't expect invalid tokens 
>> there.
> 
> So maybe we need to clarify that.
> 
> I'm a bit concerned to require more because it may be hard to implement 
> in practice.
> 
> For instance, what about locks that get removed due to server-enforced 
> timeouts, or by admin intervention?
> 
Hmm, sorry, I can't really follow you here. I'm removing a locked node 
and the lock token remains in the session. All you have to do is to 
check if a locked node is removed and remove the token from the 
manager/session.

Carsten

-- 
Carsten Ziegeler
cziegeler@apache.org

Mime
View raw message