diff --git a/cmd/object-handlers.go b/cmd/object-handlers.go index 36359e786..92f2b406c 100644 --- a/cmd/object-handlers.go +++ b/cmd/object-handlers.go @@ -1535,6 +1535,10 @@ func (api objectAPIHandlers) CopyObjectPartHandler(w http.ResponseWriter, r *htt writeErrorResponse(w, ErrSSEMultipartEncrypted, r.URL) return } + if crypto.S3.IsEncrypted(li.UserDefined) && crypto.SSEC.IsRequested(r.Header) { + writeErrorResponse(w, ErrSSEMultipartEncrypted, r.URL) + return + } var key []byte if crypto.SSEC.IsRequested(r.Header) { key, err = ParseSSECustomerRequest(r)