Skip to content

fix(dav): allow clearing all tags via PROPPATCH - #67074

Open
lazerg wants to merge 1 commit into
nextcloud:masterfrom
lazerg:fix/issue-67071-clear-tags
Open

lazerg wants to merge 1 commit into
nextcloud:masterfrom
lazerg:fix/issue-67071-clear-tags

Conversation

@lazerg

@lazerg lazerg commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Summary

An empty <oc:tags> in a PROPPATCH, or a <d:remove> of it, reaches the TagsPlugin handler as null, and the handler called getTags() on it, so the request failed with a 500. A null value is now treated as an empty tag list, which removes all personal tags but keeps the favorite, the same as the oc:favorite handler does for a removed property. I checked both requests on a local instance: master returns 500, with the fix they return 207 with 204.

Checklist

AI (if applicable)

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

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: lazerg <lazerg2@gmail.com>
@lazerg
lazerg requested a review from a team as a code owner November 27, 2026 11:29
@lazerg
lazerg requested review from icewind1991 and provokateurin and removed request for a team November 27, 2026 11:29

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: PROPPATCH clearing oc:tags fails with "Call to a member function getTags() on null"

1 participant