diff options
author | Robin Appelman <robin@icewind.nl> | 2017-03-20 18:02:21 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2017-03-20 18:17:53 +0100 |
commit | f2e981e269052db73765be3eb1c97aa69f868d5e (patch) | |
tree | c1591569ef62a107a101de8887efeb1a1fc8d291 /apps | |
parent | a4ce4403926fd314a68ec6cd099cfecc54b5ddfc (diff) | |
download | nextcloud-server-f2e981e269052db73765be3eb1c97aa69f868d5e.tar.gz nextcloud-server-f2e981e269052db73765be3eb1c97aa69f868d5e.zip |
also set nonmaskedstorage in error cases
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/SharedStorage.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/SharedStorage.php b/apps/files_sharing/lib/SharedStorage.php index 560c195d8ba..77bbb2f227b 100644 --- a/apps/files_sharing/lib/SharedStorage.php +++ b/apps/files_sharing/lib/SharedStorage.php @@ -98,6 +98,7 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto private function getSourceRootInfo() { if (is_null($this->sourceRootInfo)) { if (is_null($this->superShare->getNodeCacheEntry())) { + $this->init(); $this->sourceRootInfo = $this->nonMaskedStorage->getCache()->get($this->rootPath); } else { $this->sourceRootInfo = $this->superShare->getNodeCacheEntry(); @@ -132,6 +133,10 @@ class SharedStorage extends \OC\Files\Storage\Wrapper\Jail implements ISharedSto $this->rootPath = ''; $this->logger->logException($e); } + + if (!$this->nonMaskedStorage) { + $this->nonMaskedStorage = $this->storage; + } } /** |