Skip to content

Commit 0827a27

Browse files
harshavardhanadeekoder
authored andcommitted
api: CopyObject should return NotImplemented for now (minio#5183)
Commit ca6b477 introduces SSE-C support for HEAD, GET, PUT operations but since we do not implement CopyObject() we should return NotImplemented.
1 parent e7a724d commit 0827a27

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmd/object-handlers.go

+6
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,12 @@ func (api objectAPIHandlers) CopyObjectHandler(w http.ResponseWriter, r *http.Re
358358
return
359359
}
360360

361+
if IsSSECustomerRequest(r.Header) { // handle SSE-C requests
362+
// SSE-C is not implemented for CopyObject operations yet
363+
writeErrorResponse(w, ErrNotImplemented, r.URL)
364+
return
365+
}
366+
361367
cpSrcDstSame := srcBucket == dstBucket && srcObject == dstObject
362368
// Hold write lock on destination since in both cases
363369
// - if source and destination are same

0 commit comments

Comments
 (0)