Page 1 of 1

OpenKM with WebDrive Unlock problem

PostPosted:Tue Mar 06, 2012 10:27 am
by zeropower
Hi,
I have a problem in Lock/Unlock option at WebDrive with OpenKM 5.1.9, I follows the instruction at http://wiki.openkm.com/index.php/WebDAV_access and it works great for transferring files but when using lock option at WebDrive it give this message:
Lock.error.PNG
Lock.error.PNG (4.39 KiB) Viewed 4527 times
while it already locked the file, for unlocking it doesn't work.
My WebDrive version is 10.1 build 2557.

Log file info. coming when choosing unlock option:
Code: Select all
2012-03-06 14:14:19,265 INFO  [org.apache.jackrabbit.core.query.lucene.IndexMerger] merged 59 documents in 78 ms into _9j.
2012-03-06 14:22:07,781 INFO  [com.bradmcevoy.http.HttpManager] PROPFIND :: http://localhost/OpenKM/webdav/okm:root/Preview.Samples/PDFs/midas_Civil_catalog.pdf - http://km.econstruct.co/OpenKM/webdav/okm:root/Preview.Samples/PDFs/midas_Civil_catalog.pdf
2012-03-06 14:22:07,796 DEBUG [com.bradmcevoy.property.BeanPropertySource] getPropertyMetaData
2012-03-06 14:22:07,796 DEBUG [com.bradmcevoy.property.BeanPropertySource]  no annotation: 
2012-03-06 14:22:07,796 DEBUG [com.bradmcevoy.property.BeanPropertySource] getPropertyMetaData
2012-03-06 14:22:07,796 DEBUG [com.bradmcevoy.property.BeanPropertySource]  no annotation: 
2012-03-06 14:22:07,796 DEBUG [com.bradmcevoy.http.webdav.PropFindPropertyBuilder] property not found in any property source: {DAV:}createdby
2012-03-06 14:22:07,921 DEBUG [com.bradmcevoy.http.webdav.PropFindPropertyBuilder] some properties could not be resolved. Listing property sources:
2012-03-06 14:22:07,921 DEBUG [com.bradmcevoy.http.webdav.PropFindPropertyBuilder]  - com.bradmcevoy.property.CustomPropertySource
2012-03-06 14:22:07,921 DEBUG [com.bradmcevoy.http.webdav.PropFindPropertyBuilder]  - com.bradmcevoy.property.MultiNamespaceCustomPropertySource
2012-03-06 14:22:07,921 DEBUG [com.bradmcevoy.http.webdav.PropFindPropertyBuilder]  - com.bradmcevoy.property.BeanPropertySource
2012-03-06 14:22:07,921 DEBUG [com.bradmcevoy.http.webdav.PropFindPropertyBuilder]  - com.bradmcevoy.http.webdav.WebDavProtocol

Re: OpenKM with WebDrive Unlock problem

PostPosted:Wed Mar 07, 2012 1:02 pm
by pavila
How do you lock a document in WebDrive?

Re: OpenKM with WebDrive Unlock problem

PostPosted:Wed Mar 07, 2012 4:02 pm
by pavila
I have submitted a fix, please try the night build.

Re: OpenKM with WebDrive Unlock problem

PostPosted:Wed Mar 07, 2012 8:19 pm
by webdrivetech
Hi Zeropower,

Please let me know if I can be of assistance. I am a tech at SRT and directly support WebDrive. It looks like pavila did a fix build (server side?). Please let me know how you are locking/unlocking the files (manually or is auto dav locking enabled?). Also, please feel free to submit a helpdesk ticket to South River Technologies at srthelpdesk.com if this issue persists.

Re: OpenKM with WebDrive Unlock problem

PostPosted:Thu Mar 08, 2012 4:17 am
by zeropower
Thanks all for your replies.

I am using manual option from right-click menu.
menu.PNG
menu.PNG (4.63 KiB) Viewed 4514 times
I tried auto lock and same error appears while already locked the file but cannot unlock it, this happened only for default extensions, not working at all if added any other extensions like ".pdf"
WebDrive.Monitor.PNG
WebDrive.Monitor.PNG (37.25 KiB) Viewed 4514 times
I didn't submit a ticket as i am not sure from where exactly the problem persist.

Would you please inform about the expected time for releasing the new version.

Thanks a lot.

Re: OpenKM with WebDrive Unlock problem

PostPosted:Thu Mar 08, 2012 5:30 am
by zeropower
Hi,
I tried the night build but the same problem exist for unlocking the file, i can lock now as before but without any error message but still can't unlock any locked files.
Thanks.

Re: OpenKM with WebDrive Unlock problem

PostPosted:Thu Mar 08, 2012 10:50 am
by pavila
Can you post the WebDrive log when unlocking a file? Also would be fine to attach the zipped OpenKM server.log

Re: OpenKM with WebDrive Unlock problem

PostPosted:Mon Mar 12, 2012 7:54 am
by zeropower
Hi,
Sorry for late reply.
I attached the server log of a test server which has the same problem using version OpenKM 5.1.10, also the WebDrive log.
Code: Select all
DAV Unlock file \Preview.Samples\Drawings\P- 0032.dwg
--> DoCommand Connection: OPEN Command:(PROPFIND)
--- docommand trying again count 0 ---
PROPFIND /OpenKM/webdav/okm:root/Preview.Samples/Drawings/P-%200032.dwg HTTP/1.1
req: Content-Type: text/xml
req: Depth: 0
req: Host: km.econstruct.co
req: User-Agent: Microsoft Data Access Internet Publishing Provider DAV
req: Translate: f
req: Authorization: Basic bS5oYXRlbTpNaWRvTWlkbw==
req: Content-Length: 160
req: Connection: Keep-Alive
<?xml version="1.0" encoding="utf-8" ?><propfind xmlns="DAV:"  xmlns:srtns="http
://www.southrivertech.com/"><prop><lockdiscovery/><createdby/></prop></propfind>
rsp: HTTP/1.1 207 Multi-Status
rsp: Server: Apache-Coyote/1.1
rsp: X-Powered-By: Servlet 2.4; JBoss-4.2.3.GA (build: SVNTag=JBoss_4_2_3_GA date=200807181439)/JBossWeb-2.0
rsp: Date: Mon, 12 Mar 2012 07:46:30 GMT
rsp: Content-Type: text/xml;charset=UTF-8
rsp: Content-Length: 406
<-- DoCommand return 1
Read 406 bytes from server
<?xml version="1.0" encoding="utf-8" ?>
<D:multistatus xmlns:D="DAV:">
<D:response>
<D:href>/OpenKM/webdav/okm:root/Preview.Samples/Drawings/P-#200032.dwg</D:href>
<D:propstat>
<D:prop>
<D:lockdiscovery>
</D:lockdiscovery>
</D:prop>
<D:status>HTTP/1.1 200</D:status>
</D:propstat>
<D:propstat>
<D:prop>
<D:createdby/></D:prop>
<D:status>HTTP/1.1 404</D:status>
</D:propstat>
</D:response>
</D:multistatus>
HTTP Connection staying open
Lock Token: 
Lock Owner: 
Lock Created By: 
Lock Timeout: 0
Locked by this user: no

Re: OpenKM with WebDrive Unlock problem

PostPosted:Wed Mar 14, 2012 11:00 am
by pavila
I have made some changes in the WebDAV layer, but actually there is a problem with the unlock action. I don't know if is only related to WebDrive or is client wide because there is a bug in the WebDAV implementation library.