[Pkg-owncloud-commits] [owncloud] 215/394: throwing InsufficientStorage in case the quota is reached

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:12:08 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.

commit c50bbc8c0447bea0aa5c20d466bc12aaa695fe18
Author: Thomas Mueller <thomas.mueller at tmit.eu>
Date:   Wed Dec 12 20:09:57 2012 +0100

    throwing InsufficientStorage in case the quota is reached
---
 lib/connector/sabre/quotaplugin.php |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/connector/sabre/quotaplugin.php b/lib/connector/sabre/quotaplugin.php
index 5b8ef94..e1be5fd 100644
--- a/lib/connector/sabre/quotaplugin.php
+++ b/lib/connector/sabre/quotaplugin.php
@@ -51,7 +51,7 @@ class OC_Connector_Sabre_QuotaPlugin extends Sabre_DAV_ServerPlugin {
 			}
 			list($parentUri, $newName) = Sabre_DAV_URLUtil::splitPath($uri);
 			if ($length > OC_Filesystem::free_space($parentUri)) {
-				throw new Sabre_DAV_Exception('Quota exceeded. File is too big.');
+				throw new Sabre_DAV_Exception_InsufficientStorage();
 			}
 		}
 		return true;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list