aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2025-08-05 17:39:12 +0200
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>2025-08-06 15:18:00 +0000
commitfc585e0ef5850688de9922fdd15fe2e1b955f381 (patch)
treec430ade65d41ba7afe674b8aa6c4db6cfcdd371d
parent94a5e1440eaa8bf2d7a4ff2a59abf2d045b30845 (diff)
downloadnextcloud-server-backport/54264/stable30.tar.gz
nextcloud-server-backport/54264/stable30.zip
fix: handle smb timeouts as storage not availablebackport/54264/stable30
Signed-off-by: Robin Appelman <robin@icewind.nl>
-rw-r--r--apps/files_external/lib/Lib/Storage/SMB.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_external/lib/Lib/Storage/SMB.php b/apps/files_external/lib/Lib/Storage/SMB.php
index 6daccf40a5b..39407ce8d04 100644
--- a/apps/files_external/lib/Lib/Storage/SMB.php
+++ b/apps/files_external/lib/Lib/Storage/SMB.php
@@ -354,7 +354,7 @@ class SMB extends Common implements INotifyStorage {
if ($retry) {
return $this->stat($path, false);
} else {
- throw $e;
+ throw new StorageNotAvailableException($e->getMessage(), $e->getCode(), $e);
}
}
if ($this->remoteIsShare() && $this->isRootDir($path)) {