summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/SharedStorage.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-03-23 15:01:23 +0100
committerRobin Appelman <robin@icewind.nl>2017-03-23 15:01:23 +0100
commita12ec5ec77e0025157af8d9e1401f0f2a43a5c3a (patch)
treef99b23a969119848a2f5e4858f02a5b86dc0d81c /apps/files_sharing/lib/SharedStorage.php
parent0c1b7fdcb59a260f75cc20ad2f124826dfc566b8 (diff)
downloadnextcloud-server-a12ec5ec77e0025157af8d9e1401f0f2a43a5c3a.tar.gz
nextcloud-server-a12ec5ec77e0025157af8d9e1401f0f2a43a5c3a.zip
set cache to failedcache when shared storage init fails
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files_sharing/lib/SharedStorage.php')
-rw-r--r--apps/files_sharing/lib/SharedStorage.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/SharedStorage.php b/apps/files_sharing/lib/SharedStorage.php
index 2cfba16c686..ddbc9b8a898 100644
--- a/apps/files_sharing/lib/SharedStorage.php
+++ b/apps/files_sharing/lib/SharedStorage.php
@@ -124,13 +124,16 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto
} catch (NotFoundException $e) {
// original file not accessible or deleted, set FailedStorage
$this->storage = new FailedStorage(['exception' => $e]);
+ $this->cache = new FailedCache();
$this->rootPath = '';
} catch (NoUserException $e) {
// sharer user deleted, set FailedStorage
$this->storage = new FailedStorage(['exception' => $e]);
+ $this->cache = new FailedCache();
$this->rootPath = '';
} catch (\Exception $e) {
$this->storage = new FailedStorage(['exception' => $e]);
+ $this->cache = new FailedCache();
$this->rootPath = '';
$this->logger->logException($e);
}