Skip to content

Commit fb0b56d

Browse files
Merge pull request #55529 from nextcloud/share-recursion-error
2 parents 0274a46 + af90738 commit fb0b56d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/files_sharing/lib/SharedStorage.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,9 @@ private function init() {
135135
// this is probably because some code path has caused recursion during the share setup
136136
// we setup a "failed storage" so `getWrapperStorage` doesn't return null.
137137
// If the share setup completes after this the "failed storage" will be overwritten by the correct one
138-
$this->logger->warning('Possible share setup recursion detected');
139-
$this->storage = new FailedStorage(['exception' => new \Exception('Possible share setup recursion detected')]);
138+
$ex = new \Exception('Possible share setup recursion detected for share ' . $this->superShare->getId());
139+
$this->logger->warning($ex->getMessage(), ['exception' => $ex, 'app' => 'files_sharing']);
140+
$this->storage = new FailedStorage(['exception' => $ex]);
140141
$this->cache = new FailedCache();
141142
$this->rootPath = '';
142143
}

0 commit comments

Comments
 (0)