Skip to content

fix: show a clear message when a file drop link was deleted - #3905

Merged
AlexAndBear merged 1 commit into
mainfrom
fix/filedrop-deleted-error
Oct 20, 2026
Merged

AlexAndBear merged 1 commit into
mainfrom
fix/filedrop-deleted-error

Conversation

@AlexAndBear

Copy link
Copy Markdown
Member

Description

  • Deleted file drop links: a visitor who reloaded a deleted upload-only link saw the raw error object ("Error: Unknown error") as the page text.
  • Fix: map a 404 to the same "could not be located" message the public-link resolver uses, and a generic message for any other error; the raw error object is never rendered.

Related Issue

How Has This Been Tested?

  • test environment: unit tests (Vitest), browser tests (Playwright) against a local OpenCloud
  • test case 1: unit: FilesDrop.spec.ts — 404 shows the located message; other errors show the generic one and never the raw object
  • test case 2: browser: reloaded a deleted file-drop link -> proper message shown, no raw error; a valid link still loads and accepts an upload

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 merged commit b11b952 into main Oct 20, 2026
28 checks passed
@AlexAndBear
AlexAndBear deleted the fix/filedrop-deleted-error branch October 20, 2026 11:47
@openclouders openclouders mentioned this pull request Oct 20, 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.

File drop link shows "Error: Unknown error" after the link is deleted

2 participants