[Owncloud] WebDAV copied files have 0 bytes - sometimes...

cosch cosch at torfbruecke.net
Mon Jan 2 09:09:05 UTC 2012


Hi,

On 12/23/2011 09:42 AM, Alexander Skwar wrote:
> neon/0.29.3"
> my.ip.ad.ress - user [23/Dec/2011:08:30:17 +0000] "HEAD
> /files/webdav.php/Test/a.tar HTTP/1.1" 200 412 "-" "davfs2/1.4.6
> neon/0.29.3"
> my.ip.ad.ress - user [23/Dec/2011:08:30:27 +0000] "HEAD
> /files/webdav.php/Test/a.tar HTTP/1.1" 200 412 "-" "davfs2/1.4.6
> neon/0.29.3"
> my.ip.ad.ress - user [23/Dec/2011:08:30:27 +0000] "PUT
> /files/webdav.php/Test/a.tar HTTP/1.1" 412 740 "-" "davfs2/1.4.6
> neon/0.29.3"
> my.ip.ad.ress - user [23/Dec/2011:08:30:27 +0000] "UNLOCK
> /files/webdav.php/Test/a.tar HTTP/1.1" 409 761 "-" "davfs2/1.4.6
> neon/0.29.3"
>
>
> Interestingly, the PUT request had a status code of 412. Why's that?

i am see the same behavior using OC master on lighttpd and OS X Lion,
while Dolphin on Ubuntu 11.10 just works fine.

Here is the lighttpd log:
-------------------
from error.log:
2012-01-01 23:43:43: (connections.c.1044) oversized request-header ->
sending Status 414
-------------------
from access.log:
38399-my.ip.addr. cloud.torfbruecke.net - [01/Jan/2012:23:43:42 +0100]
"PROPFIND /files/webdav.php/ HTTP/1.1" 207 482 "-" "WebDAVFS/1.9.0
(01908000) Darwin/11.2.0 (x86_64)"
38400-my.ip.addr. cloud.torfbruecke.net - [01/Jan/2012:23:43:42 +0100]
"PROPFIND /files/webdav.php/._CIMG0031.jpg HTTP/1.1" 404 308 "-"
"WebDAVFS/1.9.0 (01908000) Darwin/11.2.0 (x86_64)"
38401-my.ip.addr. cloud.torfbruecke.net - [01/Jan/2012:23:43:42 +0100]
"PUT /files/webdav.php/CIMG0031.jpg HTTP/1.1" 412 339 "-"
"WebDAVFS/1.9.0 (01908000) Darwin/11.2.0 (x86_64)"
38402:80.237.196.42 cloud.torfbruecke.net - [01/Jan/2012:23:43:43 +0100]
"" 414 367 "-" "-"
-------------------

It also shows the 412 error for PUT request and then the 414, with
oversized request header.
I guess the 414 is a follow up error and the root cause is the 412
(Precondition failed).
This makes me think apples webdavfs is sending some http header in the
request which is problematic.

Does anyone have ideas about that?

best,
/cosch




More information about the Owncloud mailing list