diff options
author | Robin Appelman <robin@icewind.nl> | 2018-04-13 11:52:01 +0200 |
---|---|---|
committer | Backportbot <backportbot-noreply@rullzer.com> | 2019-01-08 14:22:29 +0000 |
commit | 6252f07fbccfed0867322fc41d7c2120e821a82f (patch) | |
tree | 464e01f0e1241af8054995c173542c9d3d7e8a79 /apps/dav | |
parent | 88455103fd8998f3df117040fd09d47512ce8a0c (diff) | |
download | nextcloud-server-6252f07fbccfed0867322fc41d7c2120e821a82f.tar.gz nextcloud-server-6252f07fbccfed0867322fc41d7c2120e821a82f.zip |
log more information about insufficient storage in dav plugin
Signed-off-by: Robin Appelman <robin@icewind.nl>
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; |