mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
fix: copyObject encryption from unencrypted object (#10102)
This is a continuation of #10085
This commit is contained in:
parent
ec06089eda
commit
eb6bf454f1
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user