Fixes: https://tracker.ceph.com/issues/58470
Signed-off-by: Volker Theile <vtheile@suse.com>
Signed-off-by: Liu Lan <liulan_yewu@cmss.chinamobile.com>
(cherry picked from commit
3ae77c51a74f441d1e9a078fc7bf61103f783b5e)
}
int RGWObjTags::set_from_string(const string& input){
+ if (input.empty()) {
+ return 0;
+ }
int ret=0;
vector <string> kvs;
boost::split(kvs, input, boost::is_any_of("&"));
void RGWObjTagSet_S3::decode_xml(XMLObj *obj) {
vector<RGWObjTagEntry_S3> entries;
- RGWXMLDecoder::decode_xml("Tag", entries, obj, true);
+ bool mandatory{false};
+ RGWXMLDecoder::decode_xml("Tag", entries, obj, mandatory);
for (auto& entry : entries) {
const std::string& key = entry.get_key();