mirror of
https://github.com/minio/minio.git
synced 2025-01-26 22:23:15 -05:00
api: CopyObject should return NotImplemented for now (#5183)
Commit ca6b4773ed438e46720e34b27bb90600416014f4 introduces SSE-C support for HEAD, GET, PUT operations but since we do not implement CopyObject() we should return NotImplemented.
This commit is contained in:
parent
e7a724de0d
commit
0827a2747b
@ -358,6 +358,12 @@ func (api objectAPIHandlers) CopyObjectHandler(w http.ResponseWriter, r *http.Re
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if IsSSECustomerRequest(r.Header) { // handle SSE-C requests
|
||||||
|
// SSE-C is not implemented for CopyObject operations yet
|
||||||
|
writeErrorResponse(w, ErrNotImplemented, r.URL)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
cpSrcDstSame := srcBucket == dstBucket && srcObject == dstObject
|
cpSrcDstSame := srcBucket == dstBucket && srcObject == dstObject
|
||||||
// Hold write lock on destination since in both cases
|
// Hold write lock on destination since in both cases
|
||||||
// - if source and destination are same
|
// - if source and destination are same
|
||||||
|
Loading…
x
Reference in New Issue
Block a user