Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2019-01-09 20:01:16 +0300
committerGitHub <noreply@github.com>2019-01-09 20:01:16 +0300
commit81b02e34dd07f35e3d66aa91e4a1bf9a57f66db0 (patch)
treeaa43a750e819c63cac0b93c330f9a9bf63555936 /apps
parent084e9fd2372ab5a8e740a9fd92697a9fda0b1a63 (diff)
parent6252f07fbccfed0867322fc41d7c2120e821a82f (diff)
Merge pull request #13422 from nextcloud/backport/9174/stable13
[stable13] log more information about insufficient storage in dav plugin
Diffstat (limited to 'apps')
-rw-r--r--apps/dav/lib/Connector/Sabre/QuotaPlugin.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/dav/lib/Connector/Sabre/QuotaPlugin.php b/apps/dav/lib/Connector/Sabre/QuotaPlugin.php
index af45f526831..475acd7889d 100644
--- a/apps/dav/lib/Connector/Sabre/QuotaPlugin.php
+++ b/apps/dav/lib/Connector/Sabre/QuotaPlugin.php
@@ -169,11 +169,11 @@ class QuotaPlugin extends \Sabre\DAV\ServerPlugin {
$path = rtrim($parentPath, '/') . '/' . $info['name'];
}
$freeSpace = $this->getFreeSpace($path);
- if ($freeSpace !== FileInfo::SPACE_UNKNOWN && $freeSpace !== FileInfo::SPACE_UNLIMITED && $length > $freeSpace) {
+ if ($freeSpace >= 0 && $length > $freeSpace) {
if (isset($chunkHandler)) {
$chunkHandler->cleanup();
}
- throw new InsufficientStorage();
+ throw new InsufficientStorage("Insufficient space in $path, $length required, $freeSpace available");
}
}
return true;