Skip to content

fix(web-pkg): guard against missing routes in getEditorRoute#1975

Merged
JammingBen merged 2 commits intoopencloud-eu:mainfrom
dschmidt:fix/file-extension-route-resolve-crash
Feb 16, 2026
Merged

fix(web-pkg): guard against missing routes in getEditorRoute#1975
JammingBen merged 2 commits intoopencloud-eu:mainfrom
dschmidt:fix/file-extension-route-resolve-crash

Conversation

@dschmidt
Copy link
Contributor

Description

Apps can register file extensions without defining routes (e.g. for icon association only). After the vue-router v5 upgrade, router.resolve() throws on non-existent route names instead of failing silently. This caused a crash when listing folders containing files handled by such apps.

Check router.hasRoute() before calling router.resolve() to prevent the error.

Related Issue

  • Fixes <issue_link>

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

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)

Apps can register file extensions without defining routes (e.g. for
icon association only). After the vue-router v5 upgrade, router.resolve()
throws on non-existent route names instead of failing silently. This
caused a crash when listing folders containing files handled by such apps.

Check router.hasRoute() before calling router.resolve() to prevent the
error.
@dschmidt dschmidt force-pushed the fix/file-extension-route-resolve-crash branch from 016da72 to 366f517 Compare February 16, 2026 14:09
@dschmidt dschmidt changed the base branch from next-release/stable-4.2 to main February 16, 2026 14:09
Copy link
Member

@JammingBen JammingBen left a comment

Choose a reason for hiding this comment

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

👍

@JammingBen JammingBen merged commit c2f1e59 into opencloud-eu:main Feb 16, 2026
28 checks passed
@openclouders openclouders mentioned this pull request Feb 16, 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.

2 participants