aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-11-12 10:36:17 +0100
committerGitHub <noreply@github.com>2024-11-12 10:36:17 +0100
commit8d131e721a2fd94c9eb555080a1dca8a62a526ba (patch)
tree834c9586db56e23bde750fdf0166cb1ca5e0a989 /lib
parent6ee525f91e89d196cb3d5548fd851de3a05cc75c (diff)
parente9699a5a550577182e27cd5da5dde747169f80e7 (diff)
downloadnextcloud-server-8d131e721a2fd94c9eb555080a1dca8a62a526ba.tar.gz
nextcloud-server-8d131e721a2fd94c9eb555080a1dca8a62a526ba.zip
Merge pull request #49159 from nextcloud/backport/49146/stable29
Diffstat (limited to 'lib')
-rw-r--r--lib/private/Files/Storage/DAV.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php
index e5bbbb560da..4dea220fc23 100644
--- a/lib/private/Files/Storage/DAV.php
+++ b/lib/private/Files/Storage/DAV.php
@@ -283,6 +283,7 @@ class DAV extends Common {
// we either don't know it, or we know it exists but need more details
if (is_null($cachedResponse) || $cachedResponse === true) {
$this->init();
+ $response = false;
try {
$response = $this->client->propFind(
$this->encodePath($path),
@@ -293,9 +294,9 @@ class DAV extends Common {
if ($e->getHttpStatus() === 404 || $e->getHttpStatus() === 405) {
$this->statCache->clear($path . '/');
$this->statCache->set($path, false);
- return false;
+ } else {
+ $this->convertException($e, $path);
}
- $this->convertException($e, $path);
} catch (\Exception $e) {
$this->convertException($e, $path);
}