diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2016-08-24 10:30:27 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-24 10:30:27 +0300 |
commit | 95fb14f5b046879a395da8002356cfd56d4dd70a (patch) | |
tree | 28bbb075f642f7f96b39ab51789cc20e71be4ec1 | |
parent | 2ca5186c9421a02f039c8d6c32a565f18fee327d (diff) | |
parent | 4528bdabe7841a1a66027ac39f161a2bbeb0c1a1 (diff) |
Merge pull request #1029 from nextcloud/stable10_1013
[Stable10] Do not error on NotFoundException
-rw-r--r-- | apps/files_sharing/lib/sharedstorage.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/sharedstorage.php b/apps/files_sharing/lib/sharedstorage.php index 6dec020982e..3ceca430424 100644 --- a/apps/files_sharing/lib/sharedstorage.php +++ b/apps/files_sharing/lib/sharedstorage.php @@ -36,6 +36,7 @@ use OC\Files\Cache\FailedCache; use OCA\Files_Sharing\ISharedStorage; use OCP\Constants; use OCP\Files\Cache\ICacheEntry; +use OCP\Files\NotFoundException; use OCP\Files\Storage\IStorage; use OCP\Lock\ILockingProvider; @@ -94,6 +95,9 @@ class Shared extends \OC\Files\Storage\Wrapper\Jail implements ISharedStorage { $sourcePath = $this->ownerView->getPath($this->superShare->getNodeId()); list($this->storage, $this->rootPath) = $this->ownerView->resolvePath($sourcePath); $this->sourceRootInfo = $this->storage->getCache()->get($this->rootPath); + } catch (NotFoundException $e) { + $this->storage = new FailedStorage(['exception' => $e]); + $this->rootPath = ''; } catch (\Exception $e) { $this->storage = new FailedStorage(['exception' => $e]); $this->rootPath = ''; |