Files
floci/docs
Kenshin Okinaka 60dd795703 fix(ses): reject non-string tag members with SerializationException (#2512)
* fix(ses): reject non-string tag members with SerializationException

SesController.parseTagsArray coerced tag Key/Value via asText(null), so a
non-string member (number, boolean, object, array) was silently turned
into a string (123 -> "123") and accepted, across all five SES tag entry
points that share the method (CreateEmailIdentity, CreateConfigurationSet,
CreateEmailTemplate, CreateContactList, TagResource).

AWS's restJson1 deserializer rejects a non-string tag member with
SerializationException / 400 (probe-confirmed). parseTagsArray now rejects
a present-but-non-string Key/Value the same way, leaving missing/null
members to the downstream service validation.

* fix(ses): reject non-object tag list elements with SerializationException

parseTagsArray validated Key/Value types but not that each Tags element is
a JSON object, so a scalar/array/null element fell through to service-layer
validation. Reject a non-object element with SerializationException,
matching AWS's restJson1 deserializer (AWS returns 500 for a null element,
a server-side bug, normalized to the same 400).
2026-08-25 22:50:49 -05:00
..
2026-03-15 17:43:56 -05:00