]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw/multisite: the create_bucket forward request omits the
authorShilpa Jagannath <smanjara@redhat.com>
Tue, 24 Sep 2024 21:12:02 +0000 (17:12 -0400)
committerSeena Fallah <seenafallah@gmail.com>
Thu, 20 Mar 2025 20:24:30 +0000 (21:24 +0100)
commit526735e33be73bfec0664443b59d49021be097ea
treebcf8faee9d593dadce7914ba4ddb0656edaa1da5
parent297492994c919b41e2be08f2e9079929a8758fbf
rgw/multisite: the create_bucket forward request omits the
the request body, thus missing some data if specified inside
CreateBucketConfiguration xml on the non-master zone.
also, now that we perform cksum validation against empty payloads,
such a request would fail with -ERR_AMZ_CONTENT_SHA256_MISMATCH due
to a zero content-length but a non-empty payload hash.
this fix ensures that request body is forwarded during create_bucket

Signed-off-by: Shilpa Jagannath <smanjara@redhat.com>
(cherry picked from commit 43a6f123e24a772cc48a3a045d2136e13355c2a5)
src/rgw/rgw_op.cc
src/rgw/rgw_op.h
src/rgw/rgw_rest_s3.cc