core icon indicating copy to clipboard operation
core copied to clipboard

Issues with WebDAV in Shared folder in 4.5.2

Open treynolen opened this issue 14 years ago • 6 comments

Weird behavior when accessing shared docs including data corruption.
To recreate: Create a folder and put some documents in it (say, Word docs) Share the folder to another user and give that user edit permissions. Using WebDav, log in with that other user, go to Shared, and go to the folder you shared before. Edit one of the docs and save it.

I'm seeing a few different manifestations: 1) The doc gets saved and it has a 0K size and is just wiped out. 2) The doc gets saved and is corrupt. and 3) The doc just doesn't seem to update.

You can also try editing the doc, saving it to the local machine, and then copying over the one on OwnCloud. You will get the same sort of issues.

I tested with OC 4.5.2 using NetDrive for WebDav access. The server is Ubuntu 12.04.1. I have tried several accounts and several instances of OC using multiple client machines.

treynolen avatar Nov 14 '12 23:11 treynolen

I can't reproduce the exact same behavior but a similar one (update always fails for me). Can you check your apache error log for any error messages? This would help to isolate the issue.

schiessle avatar Nov 16 '12 13:11 schiessle

What I see is that if you just try to edit and save to the file (say, using Notepad or Word), then you don't see the update. In other words, the update fails like you are seeing. However, if you copy the file locally, edit it, and then replace the file on the cloud, the file will be there but it will be 0 bytes.

No errors were recorded in my error log for apache. I can provide you with the access log for my test if you need it. I set OC logging to debug, but nothing was logged there either.

treynolen avatar Nov 16 '12 16:11 treynolen

Does this only happen for shared files or also for files owned by the user?

schiessle avatar Nov 20 '12 11:11 schiessle

The owner of the shared files can edit them fine through webdav. It only happens for the files which appear in the Shared folder.

treynolen avatar Nov 20 '12 14:11 treynolen

if it is the same bug like #478 than it should be fixed with pull request https://github.com/owncloud/core/pull/521

Can you apply this patch to your installation or try the stable45 branch and test it again?

schiessle avatar Nov 21 '12 13:11 schiessle

Solved according to a statement by @treynolen at issue #478

schiessle avatar Nov 22 '12 10:11 schiessle