mirror of
https://github.com/minio/minio.git
synced 2025-11-08 21:24:55 -05:00
fix: copyObject encryption from unencrypted object (#10102)
This is a continuation of #10085
This commit is contained in:
@@ -805,7 +805,7 @@ func DecryptObjectInfo(info *ObjectInfo, r *http.Request) (encrypted bool, err e
|
||||
}
|
||||
|
||||
encrypted = crypto.IsEncrypted(info.UserDefined)
|
||||
if !encrypted && crypto.SSEC.IsRequested(headers) {
|
||||
if !encrypted && crypto.SSEC.IsRequested(headers) && r.Header.Get(xhttp.AmzCopySource) == "" {
|
||||
return false, errInvalidEncryptionParameters
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user