Project

General

Profile

Actions

Backport #58470

open

pacific: It is not possible to set empty tags on buckets and objects.

Added by Volker Theile over 1 year ago. Updated about 1 year ago.

Status:
Fix Under Review
Priority:
Normal
Assignee:
-
Target version:
Release:
Pull request ID:
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.

Actions

Also available in: Atom PDF