Skip to content

[stable32] fix(files): Do not fail on missing sidebar in files list - #56513

Merged
AndyScherzinger merged 2 commits into
stable32from
backport/56138/stable32
Nov 30, 2025
Merged

[stable32] fix(files): Do not fail on missing sidebar in files list#56513
AndyScherzinger merged 2 commits into
stable32from
backport/56138/stable32

Conversation

@backportbot

@backportbotbackportbotBot commented Nov 18, 2025

Copy link
Copy Markdown

@backportbot
backportbotBot requested review from a team and skjnldsv as code ownersNovember 18, 2025 13:53
@backportbot
backportbotBot requested review from eszkadev, juliusknorr, nfebe and susnux and removed request for a teamNovember 18, 2025 13:53
@backportbotbackportbotBot added this to the Nextcloud 32.0.2 milestone Nov 18, 2025
@skjnldsv

Copy link
Copy Markdown
Member

/compile

@blizzzblizzz mentioned this pull request Nov 19, 2025
1 task
@AndyScherzinger

Copy link
Copy Markdown
Member

/compile rebase

eszkadevand others added 2 commits November 30, 2025 18:25
When using richdocuments it was failing in case of shared links
or when user with opened file did a wheel click on a refresh page.
Then new tab appeared but instead opening the file it was doing
nothing (showing the list of files) or downloading the file.
Make code more defensive. I found these logs while debugging:
OCA.Files.Settings initialized
Sidebar.js:19 OCA.Files.Sidebar initialized
ShareSearch.js:16 OCA.Sharing.ShareSearch initialized
comments-app.js:15 OCA.Comments.View initialized
index.mjs:54 files: Error while opening sidebar Object
log @ index.mjs:54
index.mjs:54 files: Error while opening sidebar Objectapp: "files"
TypeError: window.OCA.Files.Sidebar.open is not a function
at h.exec (http://nc/dist/files-main.js?v=106d16db-0:1:70123)
at o.openSidebarForFile (http://nc/dist/files-main.js?v=106d16db-0:1:163422)
at o.handleOpenQueries (http://nc/dist/files-main.js?v=106d16db-0:1:163167)
at o.openDetails (http://nc/dist/files-main.js?v=106d16db-0:1:162349)
at fn (http://nc/dist/core-common.js?v=106d16db-0:1:3942538)
at e.run (http://nc/dist/core-common.js?v=106d16db-0:1:3946900)
at sa (http://nc/dist/core-common.js?v=106d16db-0:1:3948728)
at Array.<anonymous> (http://nc/dist/core-common.js?v=106d16db-0:1:3943585)
at bn (http://nc/dist/core-common.js?v=106d16db-0:1:3942986)level: 2uid: "admin"
[[Prototype]]: Object
log @ index.mjs:54
Possibly regression from
e700102Fixesnextcloud/richdocuments#3815
Signed-off-by: Szymon Kłos <szymon.klos@collabora.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
@AndyScherzinger
AndyScherzinger merged commit e6ee8fa into stable32Nov 30, 2025
125 checks passed
@AndyScherzinger
AndyScherzinger deleted the backport/56138/stable32 branch November 30, 2025 18:48
@nextcloud-botnextcloud-bot mentioned this pull request Dec 3, 2025
1 task
Sign up for freeto 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.

5 participants

@skjnldsv@AndyScherzinger@blizzz@eszkadev@nextcloud-command