aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Klehr <mklehr@gmx.net>2025-03-31 15:08:57 +0200
committerGitHub <noreply@github.com>2025-03-31 15:08:57 +0200
commit272772f3c1980e6e93c0d565f0f437b51563273d (patch)
tree946dcfbcaa8369fb019f8b20d3e93d9faba4123e
parent9903a7fa9945ca2a615f9cdb8a4500ea235306fb (diff)
downloadnextcloud-server-backport/51750/stable29.tar.gz
nextcloud-server-backport/51750/stable29.zip
fix(QuotaPlugin): Change InsufficientStorage exception message for directoriesbackport/51750/stable29
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
-rw-r--r--apps/dav/lib/Connector/Sabre/QuotaPlugin.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/dav/lib/Connector/Sabre/QuotaPlugin.php b/apps/dav/lib/Connector/Sabre/QuotaPlugin.php
index ca6eb93b145..62173702b7b 100644
--- a/apps/dav/lib/Connector/Sabre/QuotaPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/QuotaPlugin.php
@@ -257,6 +257,9 @@ class QuotaPlugin extends \Sabre\DAV\ServerPlugin {
if (isset($chunkHandler)) {
$chunkHandler->cleanup();
}
+ if ($isDir) {
+ throw new InsufficientStorage("Insufficient space in $path. $freeSpace available. Cannot create directory");
+ }
throw new InsufficientStorage("Insufficient space in $path, $length required, $freeSpace available");
}
}