hello,
i am having problems with this also in version 5.0.2. build 4894
everything i do below is with the user okmAdmin, which is the only user in my fresh install.
the case is that i somehow checked out a file and like to cancel the checkout.
i also played with webdav a lot. but i think that is not important here in this case or is it?
i am getting an exception not on line 180 like in the first post but on line 189 now:
Code: Select all05:46:22,327 ERROR [DirectDocumentModule] Node locked.
javax.jcr.lock.LockException: Node locked.
at org.apache.jackrabbit.core.lock.XALockManager.checkLock(XALockManager.java:189)
at org.apache.jackrabbit.core.ItemValidator.checkLock(ItemValidator.java:389)
at org.apache.jackrabbit.core.ItemValidator.checkCondition(ItemValidator.java:312)
at org.apache.jackrabbit.core.ItemValidator.checkModify(ItemValidator.java:274)
at org.apache.jackrabbit.core.NodeImpl.restore(NodeImpl.java:3607)
at com.openkm.module.direct.DirectDocumentModule.cancelCheckout(DirectDocumentModule.java:1025)
at com.openkm.api.OKMDocument.cancelCheckout(OKMDocument.java:169)
at com.openkm.frontend.server.OKMDocumentServlet.cancelCheckout(OKMDocumentServlet.java:234)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
...
The next steps i did were: select the file in the repository view. (see attachment)
when i click on unlock at the top (next to "remove current") the following exception occurs:
Code: Select all06:03:05,364 ERROR [RepositoryViewServlet] Node not locked by session: node /okm:root/Ihre Belegnummer_ 199016311658.eml
javax.jcr.lock.LockException: Node not locked by session: node /okm:root/Ihre Belegnummer_ 199016311658.eml
at org.apache.jackrabbit.core.lock.SessionLockManager.unlock(SessionLockManager.java:183)
at org.apache.jackrabbit.core.NodeImpl.unlock(NodeImpl.java:4680)
at com.openkm.servlet.admin.RepositoryViewServlet.unlock(RepositoryViewServlet.java:153)
at com.openkm.servlet.admin.RepositoryViewServlet.doGet(RepositoryViewServlet.java:96)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
...
i am not able to unlock the file with the information of the previous posts.
what is the architecture of the locking mechanism? how can i reset the locking state for a file?