Skip to content

Commit

Permalink
fix: a shared storage with no root info about the source storage will…
Browse files Browse the repository at this point in the history
… behave as any other failed storage/cache
  • Loading branch information
DeepDiver1975 committed Nov 19, 2024
1 parent 5b0d000 commit 8f43d76
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_sharing/lib/SharedStorage.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 6 additions & 0 deletions changelog/unreleased/41338
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8f43d76

Please sign in to comment.