Skip to content

fix(files): lazily load fileinfo in Node::getParentId, getMetadata and getData - #64408

Merged
susnux merged 1 commit into
masterfrom
fix/node_getfileinfo
Sep 16, 2026
Merged

susnux merged 1 commit into
masterfrom
fix/node_getfileinfo

Conversation

@mejo-

@mejo- mejo- commented Sep 16, 2026 •

Copy link
Copy Markdown
Member

Regression fix after #53048.

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

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

…d 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 <jonas@freesources.org>
@mejo- mejo- added this to the Nextcloud 36 milestone Sep 16, 2026
@mejo-
mejo- requested a review from susnux September 16, 2026 06:57
@mejo- mejo- self-assigned this Sep 16, 2026
@mejo-
mejo- requested a review from a team as a code owner September 16, 2026 06:57
@mejo- mejo- added the bug label Sep 16, 2026
@mejo-
mejo- requested review from Altahrim and leftybournes and removed request for a team September 16, 2026 06:57
@mejo- mejo- added the 3. to review Waiting for reviews label Sep 16, 2026
@mejo-
mejo- requested a review from CarlSchwan September 16, 2026 06:57
@mejo-
mejo- requested a review from come-nc September 16, 2026 06:57
@github-project-automation github-project-automation Bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity team Sep 16, 2026
@mejo- mejo- moved this from 🧭 Planning evaluation (don't pick) to 👀 In review in 📝 Productivity team Sep 16, 2026
@susnux
susnux merged commit fb07acf into master Sep 16, 2026
273 of 275 checks passed
@susnux
susnux deleted the fix/node_getfileinfo branch September 16, 2026 08:14
@github-project-automation github-project-automation Bot moved this from 👀 In review to ☑️ Done in 📝 Productivity team Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: ☑️ Done

Development

Successfully merging this pull request may close these issues.

4 participants