Skip to content

rgw/cloud-restore: strip quotes from ETag on cloud tier fetch - #67560

Merged
soumyakoduri merged 1 commit into
ceph:mainfrom
mheler:wip-cloud-restore-etag-fix
Apr 20, 2026
Merged

soumyakoduri merged 1 commit into
ceph:mainfrom
mheler:wip-cloud-restore-etag-fix

Conversation

@mheler

@mheler mheler commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

When objects are restored from a cloud endpoint, the ETag value read from the HTTP response includes surrounding double-quotes per RFC 7232. RGW stores ETags unquoted internally, and dump_etag() adds its own quotes when serving responses. The mismatch results in double-quoted ETags like ""abc123-6"" on restored objects.

Strip the quotes from both the etag output parameter and the RGW_ATTR_ETAG attribute after fetching from the cloud endpoint, matching the unquoted format RGW uses everywhere else.

The bug was introduced in 0e0222d ("rgw/cloudtier: Restore object from cloud endpoint").

Fixes: https://tracker.ceph.com/issues/75198

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@github-actions github-actions Bot added the rgw label Feb 26, 2026
@anrao19

anrao19 commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

Pr testing completed and approved by @ivancich, More details in : https://tracker.ceph.com/issues/76032.
@mheler , if no further testing needed we can merge this pr

When objects are restored from a cloud endpoint, the ETag value read
from the HTTP response includes surrounding double-quotes per RFC 7232.
RGW stores ETags unquoted internally, and dump_etag() adds its own
quotes when serving responses. The mismatch results in double-quoted
ETags like ""abc123-6"" on restored objects.

Strip the quotes from both the etag output parameter and the
RGW_ATTR_ETAG attribute after fetching from the cloud endpoint,
matching the unquoted format RGW uses everywhere else.

Signed-off-by: Matthew N. Heler <[email protected]>
@mheler
mheler force-pushed the wip-cloud-restore-etag-fix branch from f2a9e4a to 35b4ef4 Compare April 20, 2026 14:40
@mheler
mheler requested a review from a team as a code owner April 20, 2026 14:40
@soumyakoduri
soumyakoduri merged commit 1934aad into ceph:main Apr 20, 2026
6 checks passed
@mheler
mheler deleted the wip-cloud-restore-etag-fix branch April 20, 2026 19:20
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.

3 participants