Backport #58470
pacific: It is not possible to set empty tags on buckets and objects.
Release:
Crash signature (v1):
Crash signature (v2):
Description
It is not possible to reset bucket/object tags by sending an empty list via the AWS SDK functions `putBucketTagging` or `putObjectTagging`. In both cases a `MalformedXML` error message is returned.
Using `putObjectTagging` from the AWS SDK 2.1295.0 generates an URL like `http://127.0.0.1:4300/ddddd/file2.txt?tagging=` with the body
<Tagging xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><TagSet/></Tagging>
which fails with
<?xml version="1.0" encoding="UTF-8"?><Error><Code>MalformedXML</Code><BucketName>ddddd</BucketName><RequestId>tx00000fa3c64e6bd1b3296-0063c53afd-25a0b-default</RequestId><HostId>25a0b-default-default</HostId></Error>
This issue might be related to https://github.com/ceph/ceph/pull/38532.
History
#1 Updated by Volker Theile about 1 year ago
- Description updated (diff)
#2 Updated by Volker Theile about 1 year ago
- Description updated (diff)
#3 Updated by Volker Theile about 1 year ago
Using "deleteBucketTagging" seems to work to get rid of the tags on a bucket, but "deleteObjectTagging" does not have any effect.
#4 Updated by Volker Theile about 1 year ago
- Backport set to pacific
- Affected Versions v16.2.9, v18.0.0 added
#5 Updated by Casey Bodley about 1 year ago
- Tags set to low-hanging-fruit
- Backport changed from pacific to pacific quincy
#6 Updated by Volker Theile about 1 year ago
- Status changed from New to Fix Under Review
- Pull request ID set to 49809
#7 Updated by Casey Bodley about 1 year ago
- Tracker changed from Bug to Backport
- Subject changed from It is not possible to set empty tags on buckets and objects. to pacific: It is not possible to set empty tags on buckets and objects.