mirror of
https://github.com/pgsty/minio.git
synced 2026-08-08 23:33:30 +03:00
Fix validation in PutBucketNotification handler (#4841)
Fixes #4813 If a TopicConfiguration element or CloudFunction element is found in configuration submitted to PutBucketNotification API, an BadRequest error is returned.
This commit is contained in:
committed by
Dee Koder
parent
3a73c675a6
commit
77d2870f5b
@@ -67,6 +67,7 @@ type notificationConfig struct {
|
||||
XMLName xml.Name `xml:"NotificationConfiguration"`
|
||||
QueueConfigs []queueConfig `xml:"QueueConfiguration"`
|
||||
LambdaConfigs []lambdaConfig `xml:"CloudFunctionConfiguration"`
|
||||
TopicConfigs []topicConfig `xml:"TopicConfiguration"`
|
||||
}
|
||||
|
||||
// listenerConfig structure represents run-time notification
|
||||
|
||||
Reference in New Issue
Block a user