Skip to content

fix(files): report moved files after cut & paste and block pasting into own subfolders - #3588

Merged
AlexAndBear merged 4 commits into
mainfrom
fix/paste-message-and-recursion
Oct 8, 2026
Merged

AlexAndBear merged 4 commits into
mainfrom
fix/paste-message-and-recursion

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Description

  • Cut & paste: the result message uses the transfer type of the transfer data instead of the clipboard, which is already cleared when the transfer finishes. So the toast says “moved” after cut & paste, and “copied” when a cut resource is copied into another space.
  • Recursion: copying or moving a folder into one of its own subfolders shows the existing “into itself” message instead of sending a request that fails with 409.
Before After
Cut & paste toast b11 a11
Paste into own subfolder b12 a12

Related Issue

  • No issue, found in the functional bug sweep of the web client

How Has This Been Tested?

  • test environment: local dev server, Playwright (Chromium)
  • Ctrl+X / Ctrl+V into another folder: “1 item was moved successfully”, file moved on the server
  • Ctrl+X in the personal space / Ctrl+V in a project space: “Copy here?” dialog, then “1 item was copied successfully”
  • paste a folder into its own child: “into itself” message, no COPY/MOVE request; pasting into a sibling still works
  • unit tests added

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@JammingBen JammingBen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One edge case: when cutting a resource from your personal space and then pasting into a project space, it warns about it being a copy. The message however now says that the file was moved.

@AlexAndBear
AlexAndBear requested a review from JammingBen October 8, 2026 06:52
@AlexAndBear
AlexAndBear merged commit d56d6f5 into main Oct 8, 2026
31 checks passed
@AlexAndBear
AlexAndBear deleted the fix/paste-message-and-recursion branch October 8, 2026 08:26
@openclouders openclouders mentioned this pull request Oct 8, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants