Browse Source

Merge pull request #55529 from nextcloud/share-recursion-error

pull/52012/merge
Kate 3 weeks ago
committed by GitHub
parent
commit
fb0b56de3b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 5
      apps/files_sharing/lib/SharedStorage.php

5
apps/files_sharing/lib/SharedStorage.php

@ -135,8 +135,9 @@ class SharedStorage extends Jail implements LegacyISharedStorage, ISharedStorage
// this is probably because some code path has caused recursion during the share setup
// we setup a "failed storage" so `getWrapperStorage` doesn't return null.
// If the share setup completes after this the "failed storage" will be overwritten by the correct one
$this->logger->warning('Possible share setup recursion detected');
$this->storage = new FailedStorage(['exception' => new \Exception('Possible share setup recursion detected')]);
$ex = new \Exception('Possible share setup recursion detected for share ' . $this->superShare->getId());
$this->logger->warning($ex->getMessage(), ['exception' => $ex, 'app' => 'files_sharing']);
$this->storage = new FailedStorage(['exception' => $ex]);
$this->cache = new FailedCache();
$this->rootPath = '';
}

Loading…
Cancel
Save