Skip to content

[Bug]: Data lost when moving to parent folder with the same name (conflict modal resolve with all new files) #49621

Closed
@andrey18106

Description

⚠️ This issue respects the following points: ⚠️

Bug description

When moving a folder to a parent folder which contains another folder with the same name may result in data loss. Reproducible both on stable NC30 and latest master.

Steps to reproduce

  1. Create test folder "Test"
  2. Create "New folder" inside test folder ("Test/New Folder"), put some files
  3. Create "New folder" inside "Test/New folder", put some files
  4. Move "Test/New folder/New folder" to parent ("Test/New folder") / or move the same name folder "New folder" from other place to "Test/New folder"
  5. In conflict dialog choose "Select all new files"
  6. See "Move or copy action failed" toast, the parent folder "Test/New folder" gets deleted, or if moved from other place, the "New folder" gets deleted.

Expected behavior

The move action successful with correct conflicts resolve that doesn't lead to data loss (e.g. if trashbin is disabled).

Nextcloud Server version

30

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions