From d26b24f6701e4274dee07015c9ed58b8ac98649b Mon Sep 17 00:00:00 2001 From: poornas Date: Wed, 10 Jun 2020 14:29:24 -0700 Subject: [PATCH] avoid storing X-Amz-Tagging-Directive in metadata (#9800) --- cmd/object-handlers.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/object-handlers.go b/cmd/object-handlers.go index 7ae90aef1..d8d7404e9 100644 --- a/cmd/object-handlers.go +++ b/cmd/object-handlers.go @@ -2710,7 +2710,6 @@ func (api objectAPIHandlers) PutObjectLegalHoldHandler(w http.ResponseWriter, r } objInfo.UserDefined[strings.ToLower(xhttp.AmzObjectLockLegalHold)] = strings.ToUpper(string(legalHold.Status)) if objInfo.UserTags != "" { - objInfo.UserDefined[xhttp.AmzTagDirective] = replaceDirective objInfo.UserDefined[xhttp.AmzObjectTagging] = objInfo.UserTags } objInfo.metadataOnly = true @@ -2871,7 +2870,6 @@ func (api objectAPIHandlers) PutObjectRetentionHandler(w http.ResponseWriter, r objInfo.UserDefined[strings.ToLower(xhttp.AmzObjectLockMode)] = string(objRetention.Mode) objInfo.UserDefined[strings.ToLower(xhttp.AmzObjectLockRetainUntilDate)] = objRetention.RetainUntilDate.UTC().Format(time.RFC3339) if objInfo.UserTags != "" { - objInfo.UserDefined[xhttp.AmzTagDirective] = replaceDirective objInfo.UserDefined[xhttp.AmzObjectTagging] = objInfo.UserTags } objInfo.metadataOnly = true // Perform only metadata updates.