Project

General

Profile

Backport #58470

Updated by Volker Theile over 1 year ago

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  

 <pre><code class="text"> 
 <Tagging xmlns="http://s3.amazonaws.com/doc/2006-03-01/"><TagSet/></Tagging> 
 </code></pre> 

 which fails with  

 <pre><code class="text"> 
 <?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> 
 </code></pre> 


 This issue might be related to https://github.com/ceph/ceph/pull/38532. 

 


 Using "deleteBucketTagging" seems to work to get rid of the tags on a bucket, but "deleteObjectTagging" does not have any effect. 

Back