Skip to content

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

Merged
erickguan merged 1 commit into
apache:mainfrom
YuangGao:feat/obs-conditional-read
Jun 25, 2026
Merged

feat(services/obs): support if_modified_since and if_unmodified_since…#7708
erickguan merged 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
@YuangGao YuangGao force-pushed the feat/obs-conditional-read branch from 23d30ff to 8a1023e Compare June 23, 2026 01:36

@erickguan erickguan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for working on this!

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jun 25, 2026
@erickguan erickguan merged commit a004995 into apache:main Jun 25, 2026
141 of 143 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer 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.

2 participants