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.
Copy and move to a folder where the resource already exists #3751
Since current behaviour overwrites the original resource, I put there an error message and do not execute the action to prevent data loss. Much better behaviour could be IMO to append a number after the resource name.
I guess this should be done at the API level instead of the client, right? @DeepDiver1975@PVince81
Webdav API usually doesn't have a mechanism to automatically rename.
It might be possible to send a header "If-None-Match" with the value "*" which means "only proceed if the target does not exist". That works at least for PUT, need to check if COPY checks that also.
Then if it fails with 409, display the overwrite dialog.
My user view:
Anything which can lead to data loss should have a security question. It seems the user has three options then, two are "normal" in Windows file explorer:
Cancel the request
Allow to write anyway (I know what I am doing)
Not in Windows: 3) Write with a different name (standard owncloud practice is to append (2), (3), etc. I need to select my name, but in Windows I can write the proper file name right away ...
If the action covers multiple objects, Windows Exporer allows me to repeat the same action above for all objects.
Special for us: The file (or maybe folder in the future) could also be locked. What happens then?
Activity
DeepDiver1975 commentedon Jul 8, 2020
WebDAV move/copy can either overwite the existing target or fail with an error.
Any different behavior has to be implemented in the client.
Generally speaking overwrite shall only be done after user confirmation - but this is a UX topic ....
PVince81 commentedon Jul 9, 2020
Webdav API usually doesn't have a mechanism to automatically rename.
It might be possible to send a header "If-None-Match" with the value "*" which means "only proceed if the target does not exist". That works at least for PUT, need to check if COPY checks that also.
Then if it fails with 409, display the overwrite dialog.
PVince81 commentedon Jul 9, 2020
and if the user does allow overwrite, retry the operation with the overwrite header on COPY
hodyroff commentedon Jul 13, 2020
My user view:
Anything which can lead to data loss should have a security question. It seems the user has three options then, two are "normal" in Windows file explorer:
Cancel the request
Allow to write anyway (I know what I am doing)
Not in Windows: 3) Write with a different name (standard owncloud practice is to append (2), (3), etc. I need to select my name, but in Windows I can write the proper file name right away ...
If the action covers multiple objects, Windows Exporer allows me to repeat the same action above for all objects.
Special for us: The file (or maybe folder in the future) could also be locked. What happens then?
tbsbdr commentedon May 17, 2022
closing in favour of more actionable ticket: #6996