diff --git a/apps/files_sharing/lib/SharedStorage.php b/apps/files_sharing/lib/SharedStorage.php index 1f029727fb3d4..3ad4ed70991d3 100644 --- a/apps/files_sharing/lib/SharedStorage.php +++ b/apps/files_sharing/lib/SharedStorage.php @@ -170,15 +170,18 @@ private function init() { } catch (NotFoundException $e) { // original file not accessible or deleted, set FailedStorage $this->storage = new FailedStorage(['exception' => $e]); + $this->nonMaskedStorage = $this->storage; $this->cache = new FailedCache(); $this->rootPath = ''; } catch (NoUserException $e) { // sharer user deleted, set FailedStorage $this->storage = new FailedStorage(['exception' => $e]); + $this->nonMaskedStorage = $this->storage; $this->cache = new FailedCache(); $this->rootPath = ''; } catch (\Exception $e) { $this->storage = new FailedStorage(['exception' => $e]); + $this->nonMaskedStorage = $this->storage; $this->cache = new FailedCache(); $this->rootPath = ''; $this->logger->logException($e); @@ -553,6 +556,7 @@ public function getWrapperStorage() { if (!$this->storage instanceof IStorage) { $e = new \Exception('Share source storage is null after initializing for share: ' . $this->getShare()->getId()); $this->storage = new FailedStorage(['exception' => $e]); + $this->nonMaskedStorage = $this->storage; $this->cache = new FailedCache(); $this->rootPath = ''; $this->logger->logException($e);