]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/cloud-restore: strip quotes from ETag on cloud tier fetch 67560/head
authorMatthew N. Heler <matthew.heler@hotmail.com>
Thu, 26 Feb 2026 21:14:29 +0000 (15:14 -0600)
committerMatthew N. Heler <matthew.heler@hotmail.com>
Mon, 20 Apr 2026 14:40:40 +0000 (09:40 -0500)
commit35b4ef415fdfa697b00e49eceeb64bd1821ccbbc
tree9503b2facf558110cbd9ff76fdec2fcda1b9bfd4
parent4cdd13f7a0bb23eb93bb974cafa92bda838b2406
rgw/cloud-restore: strip quotes from ETag on cloud tier fetch

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 <matthew.heler@hotmail.com>
src/rgw/driver/rados/rgw_lc_tier.cc