Skip to content

feat(services/obs): support if_modified_since and if_unmodified_since…#7708

Open
YuangGao wants to merge 1 commit into
apache:mainfrom
YuangGao:feat/obs-conditional-read
Open

feat(services/obs): support if_modified_since and if_unmodified_since…#7708
YuangGao wants to merge 1 commit into
apache:mainfrom
YuangGao:feat/obs-conditional-read

Conversation

@YuangGao

@YuangGao YuangGao commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Part of #5486.

Rationale for this change

OBS read already wires if_match / if_none_match but ignores the date-based conditionals. OBS is S3-compatible and honors If-Modified-Since / If-Unmodified-Since on GET per RFC 7232. Other backends (s3, azblob, oss, cos, tos, swift, http, webdav, azdls) already wire them.

What changes are included in this PR?

  • Inject If-Modified-Since / If-Unmodified-Since in obs_get_object_request.
  • Declare read_with_if_modified_since, read_with_if_unmodified_since on the obs service capability.

Are there any user-facing changes?

op.reader_with(...) conditionals now work on obs backends. No breaking changes; existing capability-gated behavior tests auto-cover the new flags.

AI Usage Statement

AI-assisted implementation.

@YuangGao YuangGao marked this pull request as ready for review June 8, 2026 04:33
@YuangGao YuangGao requested a review from Xuanwo as a code owner June 8, 2026 04:33
@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. releases-note/feat The PR implements a new feature or has a title that begins with "feat" labels Jun 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

releases-note/feat The PR implements a new feature or has a title that begins with "feat" size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant