summaryrefslogtreecommitdiffstats
path: root/lib/connector
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-02-23 15:37:44 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2013-02-23 15:37:44 -0500
commita2d3333a09f9e77429f7c2c85e9d405bec453ab9 (patch)
treef60c692d60f7bd02e8ebac6c28b979c0a847dd98 /lib/connector
parenta417028ccd3f38a0afd85bebb3bea8d6914bb88f (diff)
downloadnextcloud-server-a2d3333a09f9e77429f7c2c85e9d405bec453ab9.tar.gz
nextcloud-server-a2d3333a09f9e77429f7c2c85e9d405bec453ab9.zip
Don't throw insufficient storage exception if free space is unknown
Diffstat (limited to 'lib/connector')
-rw-r--r--lib/connector/sabre/quotaplugin.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/connector/sabre/quotaplugin.php b/lib/connector/sabre/quotaplugin.php
index ce9a968eb3c..233159e3646 100644
--- a/lib/connector/sabre/quotaplugin.php
+++ b/lib/connector/sabre/quotaplugin.php
@@ -50,7 +50,8 @@ class OC_Connector_Sabre_QuotaPlugin extends Sabre_DAV_ServerPlugin {
$uri='/'.$uri;
}
list($parentUri, $newName) = Sabre_DAV_URLUtil::splitPath($uri);
- if ($length > \OC\Files\Filesystem::free_space($parentUri)) {
+ $freeSpace = \OC\Files\Filesystem::free_space($parentUri);
+ if ($freeSpace !== \OC\Files\FREE_SPACE_UNKNOWN && $length > \OC\Files\Filesystem::free_space($parentUri)) {
throw new Sabre_DAV_Exception_InsufficientStorage();
}
}