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: NotFoundException for anonymous users
Signed-off-by: Kostiantyn Miakshyn <[email protected]>
  • Loading branch information
Koc authored and backportbot[bot] committed Feb 24, 2025
commit 3012a87bacfb20009212e3647fe9c50062f093e2
6 changes: 5 additions & 1 deletion apps/files_versions/lib/Listener/FileEventsListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,11 @@ private function getPathForNode(Node $node): ?string {
}
}

$owner = $node->getOwner()?->getUid();
try {
$owner = $node->getOwner()?->getUid();
} catch (\OCP\Files\NotFoundException) {
$owner = null;
}

// If no owner, extract it from the path.
// e.g. /user/files/foobar.txt
Expand Down
Loading