Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
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

Closed

Description

@LukasHirt

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

Activity

  1. DeepDiver1975 commented on Jul 8, 2020

    @DeepDiver1975
    Contributor

    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 ....

  2. PVince81 commented on Jul 9, 2020

    @PVince81
    Contributor

    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.

  3. PVince81 commented on Jul 9, 2020

    @PVince81
    Contributor

    and if the user does allow overwrite, retry the operation with the overwrite header on COPY

  4. hodyroff commented on Jul 13, 2020

    @hodyroff

    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?

  5. tbsbdr commented on May 17, 2022

    @tbsbdr

    closing in favour of more actionable ticket: #6996

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions