Skip to content

fix: skip the rename request when the name is unchanged - #4237

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/rename-unchanged-name
Nov 5, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/rename-unchanged-name

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

Confirming the Rename dialog without changing the name now just closes it, instead of sending a move onto the same path that fails with "Failed to rename".

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: confirming the unchanged name sends no request and shows no error (folder, file with extensions shown and hidden)
  • test case 2: browser: unchanged rename from the row menu, the breadcrumb menu and with hidden extensions closes the dialog without a request (desktop and Pixel 7); real, case-only and invalid renames still work

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)

@AlexAndBear
AlexAndBear force-pushed the fix/rename-unchanged-name branch from 8175dcb to 7366051 Compare November 5, 2026 13:45
@AlexAndBear
AlexAndBear merged commit a54b824 into main Nov 5, 2026
28 checks passed
@AlexAndBear
AlexAndBear deleted the fix/rename-unchanged-name branch November 5, 2026 14:23
@openclouders openclouders mentioned this pull request Nov 5, 2026
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Renaming without changing the name shows "Failed to rename"

2 participants