You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From what I understand getCachedFile() was used here in case fopen was done in random access mode. But in the case of full overwrite (mode "w") there is no need to download the remote file.
Now I realize this isn't only for s2s, it would also affect WebDAV mounts.
It seems a similar logic is used for other external storages like SMB (but not all of them)
This means that external storage upload performance will be reduced.
Steps
Expected result
B PUTs file to A through publicwebdav endpoint
Actual result
Before putting the file, B first does a GET to download the contents of the file from A.
Only then it does a PUT
Versions
ownCloud 8.1 RC2
It looks like it's happening here: https://github.com/owncloud/core/blob/master/lib/private/files/storage/dav.php#L392
From what I understand
getCachedFile()
was used here in case fopen was done in random access mode. But in the case of full overwrite (mode "w") there is no need to download the remote file.@icewind1991
The text was updated successfully, but these errors were encountered: