From 0b905fb09369b5651abd232870c434f82f29a631 Mon Sep 17 00:00:00 2001 From: Seena Fallah Date: Mon, 19 Feb 2024 18:17:52 +0100 Subject: [PATCH] rgw: fix root element for GetPublicAccessBlock From the AWS doc (https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetPublicAccessBlock.html) it needs to be PublicAccessBlockConfiguration. Fixes: https://tracker.ceph.com/issues/64492 Signed-off-by: Seena Fallah (cherry picked from commit db74c10e008caeb7092eb4c1268cbd6f044afa19) --- src/rgw/rgw_public_access.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_public_access.cc b/src/rgw/rgw_public_access.cc index 6298bb306d8..02af4b99836 100644 --- a/src/rgw/rgw_public_access.cc +++ b/src/rgw/rgw_public_access.cc @@ -9,7 +9,7 @@ void PublicAccessBlockConfiguration::decode_xml(XMLObj *obj) { } void PublicAccessBlockConfiguration::dump_xml(Formatter *f) const { - Formatter::ObjectSection os(*f, "BlockPublicAccessBlockConfiguration"); + Formatter::ObjectSection os(*f, "PublicAccessBlockConfiguration"); // Note: AWS spec mentions the values to be ALL CAPs, but clients seem to // require all small letters, and S3 itself doesn't seem to follow the API // spec here -- 2.39.5