Skip to content

Commit

Permalink
avoid storing X-Amz-Tagging-Directive in metadata (minio#9800)
Browse files Browse the repository at this point in the history
  • Loading branch information
poornas authored Jun 10, 2020
1 parent 8ba40e4 commit d26b24f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions cmd/object-handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit d26b24f

Please sign in to comment.