• how to undo check out the document

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #7806  by ssprasad.e
 
while editing the document i checked out the document but i want to undo the checkout with out uploading edited document.

i mean cancel the check-out.


i getting exception called (Okm-000024:CancelCheckOut)Document lock is denied

please help me.
 #7825  by ssprasad.e
 
after reading the above information ,

i logged in with admin role and but i could not cancel the check out .i am getting exception like below
1
Code: Select all
2:42:53,578 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:1168)
	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:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:562)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:188)
	at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:224)
	at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
please help me.
 #7826  by jllort
 
You're using version 5.0 no ?
Could you connect as okmAdmin, go to that document, and capture two screenshot ( both with selected document ), one with properties tab visible and the second when you tryed to unlock with the error popup ( if it's possible put too the stack trace error as you've put now ).
 #7886  by geantVert
 
I have 5.0 release, on Win, and it's not possible to undo checkout from okmAdmin. The option is grayed out. Are there any other steps to do ?

Edit: I had 5.0 beta, then upgraded to final 5.0, maybe that can help ?

Edit2: Workaround found, I went to Repository view on the Admin tab, then went all the way through my document, and then (finally!) "check in" and "Unlock" from the Actions tab! This is *definitely not* a user-friendly way of doing that. Am I missing smtg here ?
 #7890  by jllort
 
I could not understand why you've not enabled cancel checkout in okmAdmin. The user who locks was other than okmAdmin no ? You could try stop jboss, clean tmp and work folders and clean browser cache too.
 #7897  by ssprasad.e
 
to delete the this kid of locks ,what can i do ? is there any why to solve this lock problem using database.
i am using 5.0-RC1.

please help me :cry:
 #7899  by geantVert
 
jllort wrote:I could not understand why you've not enabled cancel checkout in okmAdmin. The user who locks was other than okmAdmin no ? You could try stop jboss, clean tmp and work folders and clean browser cache too.
Yes, the user who locked is *not* okmAdmin, you are right. This user is able to cancel check-out. But me, as okmAdmin, the option is grayed out. However, the workaround that I posted above does work, but this is a very tedious task.

I did remove all the tmp files (the content of server/default/tmp and server/default/work), but that didn't help.

What do you need to know in addition to this ?
 #7902  by ssprasad.e
 
i am getting exception in the file called DirectDocumentModule.java at contentNode.restore(contentNode.getBaseVersion(), true);

please help me.
 #7910  by pavila
 
I need a step-by-step guide to reproduce the issue and then I will fix it. For example, in the OpenKM demo can you do this?
 #10535  by Luiso
 
Hello I've created an user:
The user XXX and I put that is adminRole

When I tried to cancel the checkout of other user I can't do with this user (XXX) but if I do with de okmAdmin this work well and I can cancel the checkout.

I tried with the versions 5.0.3 and 5.0.4.

The error is this:
Code: Select all
OKM-002009(Force CancelChekOut): Document access denied
Only administrator use allowed.
I tried to do the same in the demo but I don't have the admin user to try this.

Thanks in advance!

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.