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
{{ message }}
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
Moving or copying the folder with a replace option does not work #10515
I don't agree with the expected behaviour. The content after replacing should be file1.txt. I'd only expect to have both text files if there was a Merge option, but there is none.
I don't agree with the expected behaviour. The content after replacing should be file1.txt. I'd only expect to have both text files if there was a Merge option, but there is none.
then we have uploading folder issue. should be same behavior IMHO
steps:
create f1/test.txt
upload f1 which contains file new.txt with replace option
Not sure if we can do much about that the moment since uploading and copying/moving are being handled differently.
Uploading a folder goes through each file separately to upload it. That means existing files in a folder are not affected. Whereas copying/moving are WebDAV operations and handle the folder itself as one resource. In case of replacing, the client sends an overwrite header to the server so it will replace the folder with all its contents completely.
Solutions I can think of:
Improve on our wording: "Replace" becomes "Merge" in case of an upload.
Delete the existing folder first before uploading a new folder with the "Replace" option.
Improve on our wording: "Replace" becomes "Merge" in case of an upload.
Delete the existing folder first before uploading a new folder with the "Replace" option.
I prefer the first approach to be honest.
Yes, I think the same. The "Replace" option in folder upload conflict handling should be named "Merge" instead. Doing a delete before uploading would open a can of worms for error handling (I'd expect a rollback for the deleted folder in case the upload goes wrong...)
Activity
kulmann commentedon Mar 14, 2024
I don't agree with the expected behaviour. The content after replacing should be
file1.txt. I'd only expect to have both text files if there was aMergeoption, but there is none.v-scharf commentedon Mar 14, 2024
then we have uploading folder issue. should be same behavior IMHO
steps:
f1/test.txtf1which contains filenew.txtwithreplaceoptionResult: f1 contains
new.txtandtest.txtJammingBen commentedon Mar 20, 2024
Not sure if we can do much about that the moment since uploading and copying/moving are being handled differently.
Uploading a folder goes through each file separately to upload it. That means existing files in a folder are not affected. Whereas copying/moving are WebDAV operations and handle the folder itself as one resource. In case of replacing, the client sends an overwrite header to the server so it will replace the folder with all its contents completely.
Solutions I can think of:
I prefer the first approach to be honest.
kulmann commentedon Mar 20, 2024
Yes, I think the same. The "Replace" option in folder upload conflict handling should be named "Merge" instead. Doing a delete before uploading would open a can of worms for error handling (I'd expect a rollback for the deleted folder in case the upload goes wrong...)
JammingBen commentedon Mar 20, 2024
I created #10640 to keep track of it. Which means I'm closing here as this has been resolved.