Page 1 of 1

OpenKM + Webdav + Windows 7 => finally working

PostPosted:Sun May 29, 2011 6:39 pm
by chevdor
Hello,

I just want to share here since I found the solution to my problem.

First I am using v5.0.4 and Windows 7. Thus I should not need any extra software. I have tried the software recommended in the doc and they actually did not work.

Solution:
into HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters look for TypeUseBasicAuth and replace the default value (1) by 2 allowing BasicAuth through NON SSL connections.

Then map your drive using this address:
\\localhost:8080/OpenKM/repository/default/okm_root/

I hope this will help a few...

Re: OpenKM + Webdav + Windows 7 => finally working

PostPosted:Mon May 30, 2011 7:59 am
by jllort
If I understand right, you're using default window features for connecting ... you're not using any thirdparty software is that ?

Please, confirm it and I'll put your information in our wiki documentation

Re: OpenKM + Webdav + Windows 7 => finally working

PostPosted:Mon Jul 25, 2011 7:32 am
by chevdor
Hi,

You understood right. My goal was to use nothing else than Windows.
I think this works only with Windows 7 (maybe Vista) though. It won´t work with XP systems.

Unfortunately, I find teh webdav access VERY slow despite the fact that I have only a few hundreds (200~300) docs in the system and most of the files are around 20-40kb.

Is it and area of OpenKM that should be optimized?

Re: OpenKM + Webdav + Windows 7 => finally working

PostPosted:Mon Jul 25, 2011 8:26 pm
by pavila
We plan to improve the WebDAV support in a near future. I pretty sure the performance will be increased.

Re: OpenKM + Webdav + Windows 7 => finally working

PostPosted:Sat Sep 10, 2011 12:21 am
by ikampolis
If you have a slow webdav connection in windows 7 please follow the instructions in
http://oddballupdate.com/2009/12/18/fix ... windows-7/
It turns out to be a windows issue, not OpenKM.

Furthermore in Windows 7/Vista you need to add your certificate (if its not issued by a verified CA)
into windows if you plan to use Webdav over SSL (and,like me, do not compensate with digest auth):
1) Get the certificate from the server administrator in CER format or download it from Firefox.
2) Start windows Certificate Manager: in “cmd” type certmgr.msc
3) Select on the left “Trusted Root Certification Authorities”
4) In the menu “Actions” -> “All Tasks” select “Import” and then “Next”
5) Browse for the location of certificate file you saved earlier on your computer and click “Open”.
6) You will get a few more warning messages. Just say to go through with it until the certificate is accepted.

Then you can map webdav content as a network drive without any other software. The folder should be:
https://server:port/OpenKM/repository/default/
To make sure that everything is ok with certificates, open the address using IE. If no warning pops up then its a go.

This allows you to read/view files. If you need write access over a network drive you need to
disable File Locking (windows does not support webdav file lock).

For Windows Xp there is a fix (KB907306).

Best regards from Greece,

Giannis

Re: OpenKM + Webdav + Windows 7 => finally working

PostPosted:Mon Sep 12, 2011 12:00 pm
by pavila
ikampolis wrote:If you have a slow webdav connection in windows 7 please follow the instructions in
http://oddballupdate.com/2009/12/18/fix ... windows-7/
It turns out to be a windows issue, not OpenKM.
I have these tips to our documentation wiki at http://wiki.openkm.com/index.php/WebDAV_access.

Thanks for sharing this info!

Re: OpenKM + Webdav + Windows 7 => finally working

PostPosted:Fri Jul 04, 2014 9:28 am
by raquel3rs
I can't connect to webdav from anywhere. Can someone help me?
I am using Windows 8 and want to connect to webdav without any third party software, like you did.
But I keep getting the "windows can't access error"

With webdrive I can access webdav, but file syncronization is a bit off.

Does anyone know how to map a drive in windows to webdav?
I tried and it keeps giving errors that it can't connect or access, or opens the browser instead when I paste the url in file explorer.

thank you!

Re: OpenKM + Webdav + Windows 7 => finally working

PostPosted:Sat Feb 13, 2016 9:07 am
by sbingner
I made a small patch to the code that fixes it but may or may not have unintended consequences. The problem is that windows locks the file then tries to overwrite it while holding the lock.
Code: Select all
Index: src/main/java/com/openkm/dao/NodeDocumentDAO.java
===================================================================
--- src/main/java/com/openkm/dao/NodeDocumentDAO.java   (revision 8247)
+++ src/main/java/com/openkm/dao/NodeDocumentDAO.java   (working copy)
@@ -932,7 +932,10 @@
            nDoc.setLock(nLock);
            nDoc.setLocked(true);
         } else {
-           throw new LockException("Node already locked");
+           NodeLock nLock = nDoc.getLock();
+           if (!nLock.getOwner().equals(user)) {
+               throw new LockException("Node already locked by another user");
+           }
         }
        }
Sam

Re: OpenKM + Webdav + Windows 7 => finally working

PostPosted:Mon Feb 22, 2016 3:33 pm
by pavila
Please, can you create a ticket at http://jira.openkm.com/ and attach the patch? This way it will be included in source code.

Thanks.