Skip to content
Merged
Changes from all commits
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
fix(FilesHooks): Catch all exceptions when looking up unrelated users
This will catch "Undefined array key" exceptions from above `$cachedPath[$userId]`.

Fix: nextcloud/groupfolders#3680
Signed-off-by: Louis Chemineau <[email protected]>
  • Loading branch information
artonge committed Jun 4, 2025
commit d61c433072bb383cc748dcf5abb28e76f16a3163
2 changes: 1 addition & 1 deletion lib/FilesHooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ private function getUnrelatedUsers(int $fileId, array $cachedMounts): array {
if ($node->isReadable()) {
continue; // overkill ? as rootFolder->get() would throw an exception if file is not available
}
} catch (\Exception $e) {
} catch (\Throwable $e) {
}

$filteredUsers[] = $userId;
Expand Down
Loading