Skip to content

fix(dav): keep tags on hidden files when setting tag object ids - #64441

Open
solracsf wants to merge 1 commit into
masterfrom
fix/systemtags-proppatch-hidden-objects
Open

solracsf wants to merge 1 commit into
masterfrom
fix/systemtags-proppatch-hidden-objects

Conversation

@solracsf

@solracsf solracsf commented Sep 16, 2026

Copy link
Copy Markdown
Member

Fixes #64281

Since #63946, the object-ids PROPFIND only lists files the user can see, but the PROPPATCH still compared the submitted list against every tagged file. The tag picker writes back what it read, so any tagged file the user can't see (another user's file, a file in the trash) counted as a removal and got a 403. Tagging and untagging from the picker broke as soon as a tag was on such a file, for admins as well.

A set or remove of object-ids now only adds or removes files the user can see; files hidden from the user keep the tag. Adding a hidden file, or changing a visible file without update permission, is still forbidden.

#63946 was backported to stable31 to stable35 (shipped in 32.0.15, 33.0.9 and 34.0.4), so this needs the same backports.

Since object-ids is filtered by user visibility, clients writing the list
back omit files the user cannot see, which were then treated as removed
and rejected with a 403. Only visible files are now added or removed.

Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
@solracsf
solracsf requested a review from a team as a code owner September 16, 2026 20:45
@solracsf
solracsf requested review from CarlSchwan, come-nc, icewind1991 and leftybournes and removed request for a team September 16, 2026 20:45
@susnux
susnux requested a review from GhassenKefi September 16, 2026 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Cannot assign labels to folders and files - NextCloud 34.0.4

1 participant