Fixes#4813
If a TopicConfiguration element or CloudFunction element is found in
configuration submitted to PutBucketNotification API, an BadRequest
error is returned.
master
Aditya Manthramurthy7 years agocommitted byDee Koder
@ -552,6 +553,11 @@ var errorCodeResponse = map[APIErrorCode]APIError{
Description:"Configurations overlap. Configurations on the same bucket cannot share a common event type.",
Description:"Configurations overlap. Configurations on the same bucket cannot share a common event type.",
HTTPStatusCode:http.StatusBadRequest,
HTTPStatusCode:http.StatusBadRequest,
},
},
ErrUnsupportedNotification:{
Code:"UnsupportedNotification",
Description:"Minio server does not support Topic or Cloud Function based notifications.",
HTTPStatusCode:http.StatusBadRequest,
},
ErrInvalidCopyPartRange:{
ErrInvalidCopyPartRange:{
Code:"InvalidArgument",
Code:"InvalidArgument",
Description:"The x-amz-copy-source-range value must be of the form bytes=first-last where first and last are the zero-based offsets of the first and last bytes to copy",
Description:"The x-amz-copy-source-range value must be of the form bytes=first-last where first and last are the zero-based offsets of the first and last bytes to copy",