logo
Apache Lounge
Webmasters

 


About

Forum Index Downloads Search Register Log in  RSS Apache Lounge
 



Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Apache Lounge is not sponsored.

Your donations will help to keep this site alive and well, and continuing building binaries.



mod_dav LOCK issues

 
Post new topic   Reply to topic    Apache Forum Index -> Apache



View previous topic :: View next topic  
Author Message
enigma969



Joined: 10 Aug 2017
Posts: 1
Location: Austria

PostPosted: Thu 10 Aug '17 15:29    Post subject: mod_dav LOCK issues Reply with quote

Hi,

I have configured WebDAV with Apache2 on a Ubuntu machine using the mods
dav, dav_fs and dav_lock.

Connecting to WebDAV folders works fine, from both Windows and Linux
clients. Even writing, modifying and deleting documents is possible.

Then only problem is when I try to save documents from Microsoft Word
2016 into a WebDAV folder. Word first creates an empty file on the server, but then following
error appears:
"There has been a network or file permission error. The network
connection may be lost"


Apache error.log:

Code:
Could not DELETE /pinakos/admin/66AEE86C.tmp due to a failed
precondition (e.g. locks).  [423, #0]
This resource is locked and an "If:" header was not supplied to allow
access to the resource.  [423, #0]
Could not MOVE /pinakos/admin/6A71E678.tmp due to a failed precondition
on the source (e.g. locks).  [424, #0]
An error occurred on another resource, preventing the requested
operation on this resource.  [424, #0]
Could not DELETE /pinakos/admin/6A71E678.tmp due to a failed
precondition (e.g. locks).  [423, #0]
This resource is locked and an "If:" header was not supplied to allow
access to the resource.  [423, #0]


Virtual host (excerpt):

Code:
Alias /pinakos/admin /var/www/webdav/pinakos/admin
<Directory /var/www/webdav/pinakos/admin>
     DAV On
     AuthType Digest
     AuthName "webdav"
     AuthUserFile /etc/apache2/users.password
     Require valid-user
</Directory>
<Location /pinakos/admin>
     Require user admin
</Location>


www-data has rw permissions for /var/www as well for the DavLock file.

Best regards,

Christian
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 6225
Location: Germany, Next to Hamburg

PostPosted: Sat 12 Aug '17 14:05    Post subject: Reply with quote

Hi Christian,

this is a bug from word. The same error appears also with webDAV on IIS. On IIS there is an option to disable the lock file. But then the last user who clicks on save wins.

Apache offers a central lock file DavLockDB [1]

I haven't tried it, but maybe it works for you. Otherwise do as I did and mount the webdav as a network folder and copy the file you want to edit with word to a working directry and after editing copy it back to the wevdav.

This is not a webDAV issue but a bug in Word.


[1] http://httpd.apache.org/docs/current/mod/mod_dav_fs.html#davlockdb
Back to top


Post new topic   Reply to topic    Apache Forum Index -> Apache
Page 1 of 1