[Owncloud] [OC4] WebDAV : "precondition failed" after editing a file with cadaver

Vincent Rubiolo vincent at cryostase.eu
Sun Jun 3 14:37:59 UTC 2012


Hello fellow Owncloud users,

First, a big thank you for initiating this project which allows users to 
easily get back control of their own files!

I am currently evaluating whether I can use Owncloud 4 on my Sheevaplug 
running Debian 6.0.5 with apache (2.2.16-6+squeeze7). I am experiencing 
issues when accessing my shares over WebDAV.

One of these problems occurs when using cadaver (0.23.3-1 from an Ubuntu 
12.04 machine). I get a "precondition failed" error (attached is a 
session log) after I edit a file.

I have tried looking on the ML archives about this issue(1) but the 
closest I could find pertains to the 0-byte issue which does not seem to 
be the same problem (although there is a mention of my error). A search 
on the forums with "precondition" does not yield any results. Same thing 
for the bug tracker.

Does this rings a bell to anyone? I can provide some more logs if needed 
but I am not sure which ones. I have indeed peeked a look at my apache 
{error,access}.log without seeing anything obvious (but I might be wrong).

Many thanks for your guidance!

Cheers,

Vincent Rubiolo

(1) 
http://www.google.com/search?q=site%3Ahttp%3A%2F%2Fmail.kde.org%2Fpipermail%2Fowncloud%2F+webdav&ie=utf-8&oe=utf-8&client=ubuntu&channel=fs#hl=fr&client=ubuntu&hs=c9r&channel=fs&sclient=psy-ab&q=site:http%3A%2F%2Fmail.kde.org%2Fpipermail%2Fowncloud%2F+webdav+%22precondition+failed%22&oq=site:http%3A%2F%2Fmail.kde.org%2Fpipermail%2Fowncloud%2F+webdav+%22precondition+failed%22&aq=f&aqi=&aql=&gs_l=serp.3...2540.7377.0.10028.32.27.5.0.0.0.301.4115.1j23j2j1.27.0...0.0.gXMHQOXd7PM&pbx=1&bav=on.2,or.r_gc.r_pw.r_qf.,cf.osb&fp=b0f29a8eb5441100&biw=1440&bih=749
-------------- next part --------------
vincent at vincent-laptop:~$ cadaver http://squareroot/owncloud/remote.php/webdav/
Authentication required for ownCloud on server `squareroot':
Username: Brangilles
Password: 
dav:/owncloud/remote.php/webdav/> ls
Listing collection `/owncloud/remote.php/webdav/': succeeded.
Coll:   Shared                                 0  mai 21 23:08
        Test.txt                              98  juin  3 15:59
dav:/owncloud/remote.php/webdav/> edit Test.txt
Locking `Test.txt': succeeded.
Downloading `/owncloud/remote.php/webdav/Test.txt' to /tmp/cadaver-edit-zdguN8.txt
Progress: [=============================>] 100,0% of 98 bytes succeeded.
Running editor: `vi /tmp/cadaver-edit-zdguN8.txt'...
Changes were made.
Uploading changes to `/owncloud/remote.php/webdav/Test.txt'
Progress: [=============================>] 100,0% of 108 bytes failed:
412 Precondition failed
Try uploading again (y/n)? y
Uploading changes to `/owncloud/remote.php/webdav/Test.txt'
Progress: [=============================>] 100,0% of 108 bytes failed:
412 Precondition failed
Try uploading again (y/n)?


More information about the Owncloud mailing list