diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2013-02-23 15:37:44 -0500 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2013-02-23 15:37:44 -0500 |
commit | a2d3333a09f9e77429f7c2c85e9d405bec453ab9 (patch) | |
tree | f60c692d60f7bd02e8ebac6c28b979c0a847dd98 /lib/connector | |
parent | a417028ccd3f38a0afd85bebb3bea8d6914bb88f (diff) | |
download | nextcloud-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.php | 3 |
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(); } } |