mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
Every SES v2 operation reads its body through readOptionBody, now also CreateEmailIdentity, CreateEmailTemplate, UpdateEmailTemplate, CreateCustomVerificationEmailTemplate, UpdateCustomVerificationEmailTemplate and TagResource, which read a body that is not a JSON object as one without members. Only an empty body is read as one without members; a whitespace-only body, malformed JSON and anything but whitespace after the object are a SerializationException without a message, as AWS answers them. The hand-rolled copies in the tenant, contact, account, identity, import job, send, dedicated IP, suppression and template controllers, which answered malformed JSON with a BadRequestException carrying Jackson's message, are gone, and so is the import job controller's own strict reader. The operations that answer an empty body with "Request body is required." no longer give that answer for a whitespace-only one.