haiwen / seafile

High performance file syncing and sharing, with also Markdown WYSIWYG editing, Wiki, file label and other knowledge management features.
http://seafile.com/
Other
12.28k stars 1.54k forks source link

WebDAV: uploaded files bigger than 1 MiB become empty #568

Closed rominf closed 9 years ago

rominf commented 10 years ago

All works OK, even browsing WebDAV via davfs (openSUSE 13.1). But when I put file bigger than 1 MiB after refresh it becomes empty.

Here is fragment of my log just from the moment of putting file CCR.webm to shared library. seafdav.log:

[2014-03-22 22:33:55,342]:   - my@email.address - "PROPFIND /shared/" length=286, depth=1, connection="TE", agent="davfs2/1.4.7 neon/0.30.0", elap=0.026sec -> 207 Multistatus
[2014-03-22 22:34:02,732]:   - my@email.address - "PROPFIND /shared/" length=286, depth=1, connection="TE", agent="davfs2/1.4.7 neon/0.30.0", elap=0.030sec -> 207 Multistatus
[2014-03-22 22:34:02,837]:  Default encoding: ascii (file system: UTF-8)
[2014-03-22 22:34:02,912]:   - my@email.address - "LOCK /shared/CCR.webm" length=170, depth=0, connection="TE", agent="davfs2/1.4.7 neon/0.30.0", elap=0.153sec -> 201 Created
[2014-03-22 22:34:02,940]:   - my@email.address - "HEAD /shared/CCR.webm" depth=0, connection="TE", agent="davfs2/1.4.7 neon/0.30.0", elap=0.026sec -> 200 OK
[2014-03-22 22:34:12,399]:  Raising DAVError 409 Conflict: Resource is not locked by token.
    Error condition: '{DAV:}lock-token-matches-request-uri([])'
[2014-03-22 22:34:12,400]:   - my@email.address - "UNLOCK /shared/CCR.webm" connection="TE", agent="davfs2/1.4.7 neon/0.30.0", elap=0.031sec -> 409 Conflict
[2014-03-22 22:34:12,847]:  Default encoding: ascii (file system: UTF-8) 
[2014-03-22 22:34:22,857]:  Default encoding: ascii (file system: UTF-8)
[2014-03-22 22:34:31,745]:   - my@email.address - "PROPFIND /shared/" length=286, depth=1, connection="TE", agent="davfs2/1.4.7 neon/0.30.0", elap=0.030sec -> 207 Multistatus
[2014-03-22 22:34:32,863]:  Default encoding: ascii (file system: UTF-8)

I constantly getting Default encoding: ascii (file system: UTF-8) error (several times in a second).

I have the same symptoms in Windows with net use .... and old version of NetDrive.

killing commented 10 years ago

Please read the notes about webdav clients: https://github.com/haiwen/seafile/wiki/Seafile-WebDAV-Server#notes-on-clients

rominf commented 10 years ago

@killing I've read them. I've configured davfs on Linux exactly as described. I've tried other clients to check that the problem isn't with client.