diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-01-09 18:01:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-09 18:01:16 +0100 |
commit | 81b02e34dd07f35e3d66aa91e4a1bf9a57f66db0 (patch) | |
tree | aa43a750e819c63cac0b93c330f9a9bf63555936 /apps/dav | |
parent | 084e9fd2372ab5a8e740a9fd92697a9fda0b1a63 (diff) | |
parent | 6252f07fbccfed0867322fc41d7c2120e821a82f (diff) | |
download | nextcloud-server-81b02e34dd07f35e3d66aa91e4a1bf9a57f66db0.tar.gz nextcloud-server-81b02e34dd07f35e3d66aa91e4a1bf9a57f66db0.zip |
Merge pull request #13422 from nextcloud/backport/9174/stable13
[stable13] log more information about insufficient storage in dav plugin
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/QuotaPlugin.php | 4 |
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; |