Skip to content

Commit db74c10

Browse files
committed
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 <[email protected]>
1 parent 676862e commit db74c10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rgw/rgw_public_access.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ void PublicAccessBlockConfiguration::decode_xml(XMLObj *obj) {
99
}
1010

1111
void PublicAccessBlockConfiguration::dump_xml(Formatter *f) const {
12-
Formatter::ObjectSection os(*f, "BlockPublicAccessBlockConfiguration");
12+
Formatter::ObjectSection os(*f, "PublicAccessBlockConfiguration");
1313
// Note: AWS spec mentions the values to be ALL CAPs, but clients seem to
1414
// require all small letters, and S3 itself doesn't seem to follow the API
1515
// spec here

0 commit comments

Comments
 (0)