Skip to content

fix: include custom metadata in allprop PROPFIND response#696

Open
flash7777 wants to merge 1 commit into
opencloud-eu:mainfrom
flash7777:fix/propfind-allprop-metadata
Open

fix: include custom metadata in allprop PROPFIND response#696
flash7777 wants to merge 1 commit into
opencloud-eu:mainfrom
flash7777:fix/propfind-allprop-metadata

Conversation

@flash7777

Copy link
Copy Markdown

Summary

The allprop PROPFIND handler only outputs known metadata keys (tags, audio, location, image, photo). Arbitrary custom metadata set via the Graph Metadata API is silently omitted from the response.

Changes

File Change
propfind.go Iterate over ArbitraryMetadata.Metadata and include all non-empty custom keys in the allprop response

Motivation

Applications that store custom metadata (e.g. oy.fileReference, oy.status) via SetArbitraryMetadata expect these values to appear in PROPFIND allprop responses. Without this fix, only explicit prop requests (fixed in #693) return custom metadata — allprop silently drops them.

Relation to other PRs

Companion to #693 (explicit metadata key requests). Together they ensure custom metadata is always returned in PROPFIND responses, regardless of request style.

Test plan

  • Set custom metadata via Graph Metadata API
  • PROPFIND with allprop returns the custom metadata
  • Known metadata (tags, audio etc.) still works as before

The allprop handler only output known metadata keys (tags, audio,
location, image, photo). Arbitrary custom metadata set via the
Graph Metadata API was silently omitted. Now all non-empty custom
metadata keys are included in the allprop response.

This complements cs3org#693 which fixes explicit metadata key requests.
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.

1 participant