From 67750b26af3e27ab64b04c57d13fddd0990d8832 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Tue, 1 Nov 2022 19:41:10 +0100 Subject: [PATCH] do not run file access check while source storage is not initialized Signed-off-by: Arthur Schiwon --- lib/CacheWrapper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/CacheWrapper.php b/lib/CacheWrapper.php index b86373f4..23549732 100644 --- a/lib/CacheWrapper.php +++ b/lib/CacheWrapper.php @@ -55,7 +55,7 @@ public function __construct(ICache $cache, IStorage $storage, Operation $operati public const PERMISSION_DELETE = 8; protected function formatCacheEntry($entry) { - if (isset($entry['path']) && isset($entry['permissions'])) { + if (isset($entry['path']) && isset($entry['permissions']) && $this->storage->getWrapperStorage() !== null) { try { $this->operation->checkFileAccess($this->storage, $entry['path'], $entry['mimetype'] === 'httpd/unix-directory'); } catch (ForbiddenException $e) {