fix(rds): reject malformed event subscription flags (#5481)

This commit is contained in:
David Phillips authored and GitHub committed 2026-10-11 20:44:26 -04:00
1 parent a96cc04fab
commit eb3c14d414
4 files changed
+116 -3

No files matched your search

@@ -313,7 +313,7 @@ public class RdsQueryHandler {
params.getFirst("SourceType"),
memberList(params, "SourceIds"),
memberList(params, "EventCategories"),
optionalBoolean(params.getFirst("Enabled")),
parseOptionalBoolean(params, "Enabled"),
parseTags(params));
return Response.ok(AwsQueryResponse.envelope("CreateEventSubscription", AwsNamespaces.RDS,
new XmlBuilder().raw(eventSubscriptionXml(subscription)).build())).build();
@@ -325,7 +325,7 @@ public class RdsQueryHandler {
params.getFirst("SnsTopicArn"),
params.getFirst("SourceType"),
memberList(params, "EventCategories"),
optionalBoolean(params.getFirst("Enabled")));
parseOptionalBoolean(params, "Enabled"));
return Response.ok(AwsQueryResponse.envelope("ModifyEventSubscription", AwsNamespaces.RDS,
new XmlBuilder().raw(eventSubscriptionXml(subscription)).build())).build();
}