]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix root element for GetPublicAccessBlock
authorSeena Fallah <seenafallah@gmail.com>
Mon, 19 Feb 2024 17:17:52 +0000 (18:17 +0100)
committerCasey Bodley <cbodley@redhat.com>
Thu, 7 Mar 2024 16:12:54 +0000 (11:12 -0500)
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 <seenafallah@gmail.com>
(cherry picked from commit db74c10e008caeb7092eb4c1268cbd6f044afa19)

src/rgw/rgw_public_access.cc

index d388a59a7bb95518cf6490ccbac2a264d7ae961a..6d86ad3516e5bebcec3116195f89fa9f508d9e5b 100644 (file)
@@ -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