From 8f43d76485b47936e100d128ec8630de309fab58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= <1005065+DeepDiver1975@users.noreply.github.com> Date: Tue, 19 Nov 2024 08:23:26 +0100 Subject: [PATCH] fix: a shared storage with no root info about the source storage will behave as any other failed storage/cache --- apps/files_sharing/lib/SharedStorage.php | 2 +- changelog/unreleased/41338 | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/41338 diff --git a/apps/files_sharing/lib/SharedStorage.php b/apps/files_sharing/lib/SharedStorage.php index b8cb951c7102..b0a3a2f7ee3e 100644 --- a/apps/files_sharing/lib/SharedStorage.php +++ b/apps/files_sharing/lib/SharedStorage.php @@ -323,7 +323,7 @@ public function getItemType() { public function getCache($path = '', $storage = null) { $this->init(); - if ($this->sourceStorage === null || $this->sourceStorage instanceof FailedStorage) { + if ($this->sourceStorage === null || $this->sourceStorage instanceof FailedStorage || $this->sourceRootInfo === false) { return new FailedCache(false); } if (!$storage) { diff --git a/changelog/unreleased/41338 b/changelog/unreleased/41338 new file mode 100644 index 000000000000..4b3a050a3c7b --- /dev/null +++ b/changelog/unreleased/41338 @@ -0,0 +1,6 @@ +Bugfix: Unavailable shares storage will not block folder listing + +In case a shared storage is not available in certain situations no folder +listing would be shown to the user. + +https://github.com/owncloud/core/pull/41338