[Pkg-owncloud-commits] [owncloud] 36/131: Throw storage not available on guzzle error

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 15:58:28 UTC 2015


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

taffit pushed a commit to annotated tag v8.1.1
in repository owncloud.

commit f920923dd6ce1375c232332aa68a4c34c87c500d
Author: Vincent Petry <pvince81 at owncloud.com>
Date:   Mon Jul 13 18:51:25 2015 +0200

    Throw storage not available on guzzle error
    
    If the remote server is in maintenance mode, we must throw storage not
    available exception instead of not found which might auto-remove the
    share.
---
 apps/files_sharing/lib/external/storage.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/files_sharing/lib/external/storage.php b/apps/files_sharing/lib/external/storage.php
index 3284a60..dc8d173 100644
--- a/apps/files_sharing/lib/external/storage.php
+++ b/apps/files_sharing/lib/external/storage.php
@@ -253,7 +253,7 @@ class Storage extends DAV implements ISharedStorage {
 			// throw this to be on the safe side: the share will still be visible
 			// in the UI in case the failure is intermittent, and the user will
 			// be able to decide whether to remove it if it's really gone
-			throw new NotFoundException();
+			throw new StorageNotAvailableException();
 		}
 
 		return json_decode($response->getBody(), 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