Page 1 of 1

modified files are reverted back to initial version (webDAV) - all changes lost

PostPosted:Sat Apr 22, 2017 10:29 pm
by Discta
Hello forum,

I am using OpenKM 6.3.2. on a Linux Ubuntu-Server (16.04) with tomcat-7.0.27.

I have connected a Linux Mint client over webdav using this instruction: https://docs.openkm.com/kcenter/view/ok ... html#Linux using the manual mounting method:
Code: Select all
$ mount ~/okmdav
/sbin/mount.davfs: Warning: server can not lock files
I can access and read the OpenKM structure with my file explorer as expected.

I also can create a document by any program on my client and save it in the mounted path (/home/discta/okmdav/okm_root/Transfer)

But there is a serous problem, when I re-open a document from webdav for editing and then I save the document with the same name. This works without error message. I can confirm this in my file explorer, as the document has the correct time stamp of the write access. But when I check the file using the Browser/Firfox access, I can not see the changes in the file preview. So maybe, the changes have in fact not really arrived in OpenKM (just a guess)... :-/

Now my problem:
When I close the program (which has created the document) after a short while (some seconds) the time stamp of the document reverts back to the previous time and all changes are lost.

This occurred with all documents created e. g. in Libreoffice (5.1.6.2), InkScape (0.91), Gimp (2.8.16)

Note:
While I am editing the document, I see a file like .~lock.document_000.odt#
When I check the history of the files, all of them have only one version 1.0.

What could be the reason for this?
How can I solve this?

Thanks for any hints and kind regards

Discta

Re: modified files are reverted back to initial version (webDAV) - all changes lost

PostPosted:Sun Apr 23, 2017 6:24 pm
by jllort
By now, forget the preview issue. When you download version 1.1 what do you get ?

Re: modified files are reverted back to initial version (webDAV) - all changes lost

PostPosted:Mon Apr 24, 2017 10:44 am
by Discta
Sorry, there is no (second) version 1.1 generated. Whatever I do over webdav, all files remain in the first version 1.0

This procedure is reproducible in my setup (OpenKM is mounted on /home/discta/okmdav/, so I access the path like a local folder):

1. I initially create a new document (LibreOffice)
2. I save it and close LO
3. I check the history via webclient (firefox): version 1.0
4. I reopen the document and everything is OK
5. I edit the document and save it (keep LO open)
6. I check the history via webclient: still version 1.0
7. Now I close LO and quickly reopen the document: changes are still in the document
8. Again I close LO and wait for 20 seconds
9. I reopen the document and the changes are gone, only the initial text is left.

This is my line in /etc/fstab/:
Code: Select all
192.168.1.108:8080/OpenKM/webdav /home/discta/okmdav davfs user,rw,auto,_netdev,uid=discta,file_mode=600,dir_mode=700 0 1
'discta' is registered as ROLE_USER in OpenKM

Re: modified files are reverted back to initial version (webDAV) - all changes lost

PostPosted:Fri May 05, 2017 7:01 am
by jllort
Can you upgrade to version 6.3.4 and check from there ( we have released this version two days ago ). https://github.com/openkm/document-mana ... m/releases

Firt upgrade to version 6.3.3 and then to 6.3.4 ( follow the steps described here https://docs.openkm.com/kcenter/view/ok ... guide.html )