Repository navigation
fix(integrations/object_store): preserve read and stat attributes - #9636
Merged
Merged
Conversation
PsiACE
approved these changes
Dec 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Closes #9554.
Rationale for this change
The adapter discarded the
GetResultattributes returned by the wrapped store. Onobject_store0.14.2,InMemoryreturns the headers it stores after both single and multipart writes. Those headers were missing from OpenDAL read and stat metadata.What changes are included in this PR?
Map
Cache-Control,Content-Disposition,Content-Encoding,Content-Language,Content-Type, and user metadata from the SDK's existing GET and HEAD responses. File metadata stays available when optional attributes exceed OpenDAL's compact metadata capacity. Include user metadata when the complete map fits.Are there any user-facing changes?
Operator::statand reader metadata now expose the representable attributes supplied by the wrapped store. Inobject_store0.14.2,InMemoryreturns stored attributes andLocalFileSystemreturns basic object metadata and rejects attribute-bearing single and multipart writes. Writing user metadata through a wrapped store requires an explicit capability override for a store known to support it.Breaking changes
AI Usage Statement
magpie/codex/gpt-6.2-sol. Effort —max. Role — Reproduced the omission, implemented the response conversion, and verified it against the SDK's realInMemoryandLocalFileSystemstores. Runtime evidence covers these two implementations.magpie/codex/gpt-6.2-astra. Effort —xhigh. Role — Scoped the follow-up to metadata representable by the current adapter and its existing operations.magpie/codex/gpt-6.2-sol. Effort —high. Role — Independently reviewed the patch, exercised the SDK stores and the compact metadata size boundary, and inspected nonempty version pass-through in the source.