• Issue in uploading a document using webdav

  • We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
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.
 #32033  by khalid2040
 
Hi,

I am facing an issue in uploading a document using webdav/davfs2 on openkm v6.3.0 community.
Openkm was working perfectly fine with about 350,000 documents uploaded. However, after uploading another 150,000 documents, I notice a strange behavior. When I upload a new version of a document, the new version is visible for a couple of seconds and then it is restored to the older version.
I am trying to upload a file 'Cloverleaf Certificates.pdf' (size of old version is '837772' and size of new version is '838878'). Here is the output of 'ls -ltr' command right after uploading the new version...
Code: Select all
root@UbuntHTPC:/datapool/Cloverleaf/Certificates# ls -ltr
total 2002
-rwx------ 1 khalid sftp-only 1209942 Mar 22 01:10 Cloverleaf Certificates.tif
-rwx------ 1 khalid sftp-only  838878 Mar 22 01:10 Cloverleaf Certificates.pdf
root@UbuntHTPC:/datapool/Cloverleaf/Certificates# ls -ltr
total 2002
-rwx------ 1 khalid sftp-only 1209942 Mar 22 01:10 Cloverleaf Certificates.tif
-rwx------ 1 khalid sftp-only  838878 Mar 22 01:10 Cloverleaf Certificates.pdf
root@UbuntHTPC:/datapool/Cloverleaf/Certificates# ls -ltr
total 1182
-rwx------ 1 khalid sftp-only 1209942 Mar 22 01:10 Cloverleaf Certificates.tif
root@UbuntHTPC:/datapool/Cloverleaf/Certificates# ls -ltr
total 2001
-rwx------ 1 khalid sftp-only 1209942 Mar 22 01:10 Cloverleaf Certificates.tif
-rwx------ 1 khalid sftp-only  837772 Mar 23 20:23 Cloverleaf Certificates.pdf
As you can see, in the third 'ls' command, 'Cloverleaf Certificates.pdf' disappears and in the fourth 'ls' command it reappears but as the old version (identifiable via file-size). It looks like something has restored the old version. I don't see any error in catalina.log or syslog/davfs2.

Any help is appreciated... :-)
Thanks in advance!!
 #37438  by khalid2040
 
jllort wrote:How are you uploading the files ? with webdav ?
Yes, I am uploading the files using webdav. However, the issue is resolved now.
Turns out the issue was with davfs. I resolved it by setting the configuration "if_match_bug" to "1", in davfs configuration file "davfs2.conf". Not sure though what caused it, as it was working earlier.

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.