Skip to content

[stable34] fix(viewer): register handlers not yet in the lookup table when opening a file - #3422

Merged
skjnldsv merged 2 commits into
stable34from
fix/registered-handlers-lookup-stable34
Oct 19, 2026
Merged

skjnldsv merged 2 commits into
stable34from
fix/registered-handlers-lookup-stable34

Conversation

@skjnldsv

@skjnldsv skjnldsv commented Oct 6, 2026

Copy link
Copy Markdown
Member

Backport of #3418.

On this branch the end-to-end test is the Playwright version of the Cypress test, and the DOMContentLoaded listener had already dropped the Sidebar binding, so it only calls registerNewHandlers() now.

It also stops the duplicate "Could not register handler" errors from #3362, as queued handlers already registered are skipped.

👾 This pull request was assisted by Claude Code, commits carry an Assisted-by trailer.

…ng a file

On single-file public shares, the files app can open the file before
DOMContentLoaded, while the component's handler lookup table is still
empty. This shows "There is no plugin available to display this file
type". Register any missing handlers when a file is opened, as well as
on DOMContentLoaded.

On this branch the end-to-end test is the Playwright version of the
Cypress test.

(cherry picked from commit 0d33b35)

Signed-off-by: silver <s.szmajduch@posteo.de>
Assisted-by:ClaudeCode:claude-opus-5.5
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
@skjnldsv skjnldsv added bug Something isn't working 3. to review Waiting for reviews labels Oct 6, 2026
@skjnldsv skjnldsv self-assigned this Oct 6, 2026
@skjnldsv

skjnldsv commented Oct 6, 2026

Copy link
Copy Markdown
Member Author

/compile

Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@skjnldsv
skjnldsv merged commit c41e0e0 into stable34 Oct 19, 2026
21 checks passed
@skjnldsv
skjnldsv deleted the fix/registered-handlers-lookup-stable34 branch October 19, 2026 20:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants