From 83bcecbf3a70e665111dbcb29793acacb9520467 Mon Sep 17 00:00:00 2001 From: Jonas Date: Wed, 16 Sep 2026 08:53:47 +0200 Subject: [PATCH] fix(files): lazily load fileinfo in Node::getParentId, getMetadata and getData These methods used `$this->fileInfo` directly, unlike the other getters which go through `getFileInfo()`. Since the DAV root is now a LazyUserFolder whose real UserFolder is created without fileinfo, `FilesPlugin::handleGetProperties` triggered "Call to a member function getMetadata() on null" mid-stream for PROPFIND on the user root, producing invalid multistatus XML. Assisted-by: ClaudeCode:claude-fable-5-1 Signed-off-by: Jonas --- lib/private/Files/Node/Node.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/private/Files/Node/Node.php b/lib/private/Files/Node/Node.php index 73aebd8093a5e..0de86b92efd8e 100644 --- a/lib/private/Files/Node/Node.php +++ b/lib/private/Files/Node/Node.php @@ -503,7 +503,7 @@ public function getLastActivity(): int { #[\Override] public function getParentId(): int { - return $this->fileInfo->getParentId(); + return $this->getFileInfo()->getParentId(); } /** @@ -512,11 +512,11 @@ public function getParentId(): int { */ #[\Override] public function getMetadata(): array { - return $this->fileInfo->getMetadata(); + return $this->getFileInfo()->getMetadata(); } #[\Override] public function getData(): ICacheEntry { - return $this->fileInfo->getData(); + return $this->getFileInfo()->getData(); } }