You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Paco Avila (JIRA)" <ji...@apache.org> on 2006/11/20 23:22:02 UTC
[jira] Created: (JCR-641) can't add lock token to session after 3
login/logout
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
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
[jira] Commented: (JCR-641) can't add lock token to session after 3
login/logout
Posted by "Paco Avila (JIRA)" <ji...@apache.org>.
[ 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
[jira] Reopened: (JCR-641) can't add lock token to session after 3
login/logout
Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-641?page=all ]
Stefan Guggisberg reopened JCR-641:
-----------------------------------
reopening as i realized that this issue is actually a duplicate of KCR-441
> 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
> Assigned To: Stefan Guggisberg
> Priority: Critical
> Fix For: 1.2
>
> Attachments: DummyLockToken.java, DummyLockToken.log, 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
[jira] Commented: (JCR-641) can't add lock token to session after 3
login/logout
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-641?page=comments#action_12454390 ]
Jukka Zitting commented on JCR-641:
-----------------------------------
> This is a ugly bug, can be fixed in the 1.1.1 release?
Too late, the release has already been tagged. The fix will be in the 1.2 release.
> 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
> Assigned To: Stefan Guggisberg
> Priority: Critical
> Fix For: 1.2
>
> Attachments: DummyLockToken.java, DummyLockToken.log, 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
[jira] Resolved: (JCR-641) can't add lock token to session after 3
login/logout
Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-641?page=all ]
Stefan Guggisberg resolved JCR-641.
-----------------------------------
Resolution: Fixed
resolving as duplicate of JCR-441
> 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
> Assigned To: Stefan Guggisberg
> Priority: Critical
> Fix For: 1.2
>
> Attachments: DummyLockToken.java, DummyLockToken.log, 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
[jira] Updated: (JCR-641) can't add lock token to session after 3
login/logout
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-641?page=all ]
Jukka Zitting updated JCR-641:
------------------------------
Affects Version/s: 1.1.1
1.0.1
1.0
0.9
> 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, 1.1.1, 1.0.1, 1.0, 0.9
> Environment: Linux Ubuntu Dapper
> Reporter: Paco Avila
> Assigned To: Stefan Guggisberg
> Priority: Critical
> Fix For: 1.2
>
> Attachments: DummyLockToken.java, DummyLockToken.log, 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
[jira] Updated: (JCR-641) can't add lock token to session after 3
login/logout
Posted by "Paco Avila (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-641?page=all ]
Paco Avila updated JCR-641:
---------------------------
Attachment: repository2.xml
> 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
[jira] Commented: (JCR-641) can't add lock token to session after 3
login/logout
Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-641?page=comments#action_12454333 ]
Stefan Guggisberg commented on JCR-641:
---------------------------------------
pseudo code for reproducing the issue:
- sessionA locks a node and retrieves the lock token
- sessionA logs out (or lock token is removed from sessionA)
- lock token is transfered to sessionB
- sessionB logs out (or lock token is removed from sessionB)
- lock token is transfered to sessionC
- sessionC tries to unlock the node => LockException
> 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
> Assigned To: Stefan Guggisberg
> Priority: Critical
> Attachments: DummyLockToken.java, DummyLockToken.log, 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
[jira] Updated: (JCR-641) can't add lock token to session after 3
login/logout
Posted by "Paco Avila (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-641?page=all ]
Paco Avila updated JCR-641:
---------------------------
Attachment: DummyLockToken.java
> 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
[jira] Commented: (JCR-641) can't add lock token to session after 3
login/logout
Posted by "Paco Avila (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-641?page=comments#action_12451454 ]
Paco Avila commented on JCR-641:
--------------------------------
Perhaps the description is a bit confusing, but in our web application OpenKM the users logout and login several times and an user can't unlock a previuos locked file.
> 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
[jira] Updated: (JCR-641) can't add lock token to session after 3
login/logout
Posted by "Paco Avila (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-641?page=all ]
Paco Avila updated JCR-641:
---------------------------
Attachment: DummyLockToken.log
Sample log output
> 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, DummyLockToken.log, 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
[jira] Resolved: (JCR-641) can't add lock token to session after 3
login/logout
Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-641?page=all ]
Stefan Guggisberg resolved JCR-641.
-----------------------------------
Fix Version/s: 1.2
Resolution: Fixed
fixed in svn r480587
paco, thanks for reporting this issue!
> 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
> Assigned To: Stefan Guggisberg
> Priority: Critical
> Fix For: 1.2
>
> Attachments: DummyLockToken.java, DummyLockToken.log, 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
[jira] Commented: (JCR-641) can't add lock token to session after 3
login/logout
Posted by "Paco Avila (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-641?page=comments#action_12454381 ]
Paco Avila commented on JCR-641:
--------------------------------
This is a ugly bug, can be fixed in the 1.1.1 release?
> 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
> Assigned To: Stefan Guggisberg
> Priority: Critical
> Fix For: 1.2
>
> Attachments: DummyLockToken.java, DummyLockToken.log, 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
[jira] Assigned: (JCR-641) can't add lock token to session after 3
login/logout
Posted by "Stefan Guggisberg (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-641?page=all ]
Stefan Guggisberg reassigned JCR-641:
-------------------------------------
Assignee: Stefan Guggisberg
> 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
> Assigned To: Stefan Guggisberg
> Priority: Critical
> Attachments: DummyLockToken.java, DummyLockToken.log, 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