jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paco Avila (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-641) can't add lock token to session after 3 login/logout
Date Mon, 20 Nov 2006 22:52:04 GMT
    [ http://issues.apache.org/jira/browse/JCR-641?page=comments#action_12451468 ] 
            
Paco Avila commented on JCR-641:
--------------------------------

This is a quick and dirty workaround:

CLASS: LockManagerImpl
METHOD: public void lockTokenAdded(SessionImpl session, String lt)

if (element != null) {
                AbstractLockInfo info = (AbstractLockInfo) element.get();
                if (info != null) {
                    if (info.getLockHolder() == null || info.getLockHolder().getUserID().equals(session.getUserID()))
{
                        info.setLockHolder(session);
                    } else {
                        log.warn("Adding lock token has no effect: "
                                + "lock already held by other session.");
                    }
                }
            }

> can't add lock token to session after 3 login/logout
> ----------------------------------------------------
>
>                 Key: JCR-641
>                 URL: http://issues.apache.org/jira/browse/JCR-641
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: locks
>    Affects Versions: 1.1
>         Environment: Linux Ubuntu Dapper
>            Reporter: Paco Avila
>            Priority: Critical
>         Attachments: DummyLockToken.java, repository2.xml
>
>
> I login and lock a file and logout. Perfoms a new login and add the previous lock token
to the current session because I want to unlock this file. This works fine. But if I do a
new logout/login I can't unlock the file (the file is locked). It is best understanded looking
at the test case.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message