Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix: Log missing nodes of shares at debug level
Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Dec 2, 2025
commit f453411d594a4bb45dd5e51a51d23547acb74331
5 changes: 4 additions & 1 deletion lib/private/Files/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -1885,8 +1885,11 @@ private function targetIsNotShared(string $user, string $targetPath): bool {
foreach ($shares as $share) {
try {
$sharedPath = $share->getNode()->getPath();
} catch (NotFoundException) {
} catch (NotFoundException $e) {
// node is not found, ignoring
$this->logger->debug(
'Could not find the node linked to a share',
['app' => 'files', 'exception' => $e]);
continue;
}
if ($targetPath === $sharedPath || str_starts_with($targetPath, $sharedPath . '/')) {
Expand Down
Loading