Repository navigation
Wrap the entire dav PUT in a read lock - #17811
Conversation
|
Tested and works. Also fixes |
|
👍 |
|
@MorrisJobke does this really solve the frontend issue owncloud/files_texteditor#61 for you? |
Sorry. Wrong paste. It fixes owncloud/files_texteditor#93 |
|
Breaks chunk upload: This file size is 126679286. @icewind1991 when touching webdav upload code please always test with both non-chunked upload and chunked upload. |
c3d85ea to
bbbb5a3
Compare
|
chunked problems should all be fixed now (and covered with unit tests) |
|
I tested this with and without file locking based on the webdav interface. Worked so far 👍 |
|
@MorrisJobke the problem was based on file chunking, so must also test with the sync client. |
With locking
Without locking
|
|
Note that I am testing with encryption enabled too. |
|
94a3c65 to
c8071c0
Compare
I can't reproduce this, either manually or automated (#18901) and I have a hard time seeing how these changes can introduce an issue with locking disabled |
|
Can you rebase ? |
c8071c0 to
688981b
Compare
|
A new inspection was created. |
|
Seems the chunk upload with encryption works now. Let me retest the other cases too. |
|
Also I can confirm that the hooks still work as I could see versions created for both chunked and non-chunked overwritten files. I can't test the smashbox stuff, it's broken on master: #19031 |
|
@PVince81 @DeepDiver1975 can this be merged? |
|
Ok to merge from me 👍 But please have a look at the failing smashbox tests on master. |
Wrap the entire dav PUT in a read lock

Acquire a read lock in the beforeMethod hook to ensure we have the file read locked when precondition checks are made.
Fixes #16569
cc @DeepDiver1975 @PVince81