Skip to content

fix: handle deep links to deleted or missing files - #3590

Merged
AlexAndBear merged 4 commits into
mainfrom
fix/deep-links-to-missing-files
Oct 8, 2026
Merged

AlexAndBear merged 4 commits into
mainfrom
fix/deep-links-to-missing-files

Conversation

@AlexAndBear

@AlexAndBear AlexAndBear commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Description

  • Deleted file id: listFiles rejects with 404 when the server returns an empty path for a file id. Before, the space root was listed, so the editor opened the root folder as a document and the preview showed other files.
  • Preview after delete: the URL now points to the file that is shown after deleting the current one.
  • Missing file in an app: no reading 'size' TypeError when the file can't be loaded.
  • Not found in an app: a 404 shows the "Resource not found" message with the ghost, like the file list. Other errors keep the error screen.
Before After
Editor deep link to a deleted file b3 a3

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)
  • text editor deep link with a deleted file id: “Resource not found” message with the ghost; preview shows no files from another folder
  • delete the shown file in the preview: URL switches to the next file, reload shows it
  • text editor deep link to a non-existent file: “Resource not found” message with the ghost, no pageerror
  • 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)

@AlexAndBear
AlexAndBear merged commit 4aec16d into main Oct 8, 2026
31 checks passed
@AlexAndBear
AlexAndBear deleted the fix/deep-links-to-missing-files branch October 8, 2026 09:51
@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