mirror of
https://github.com/floci-io/floci.git
synced 2026-11-25 23:00:59 -05:00
SendTemplatedEmail and SendBulkTemplatedEmail now check TemplateArn with the parser the v2 sends use: partition, service, region and resource type each answer their own "Invalid template ARN" message, a value without "arn:" and an empty template name are rejected, and the account is not checked. The v1-only parser that looked for ":template/" is removed, and the name/ARN alignment check moves into SesTemplateService for both protocols; the v2 controller's remap keeps its BadRequestException. Both v1 sends require Template whatever TemplateArn holds, as the model does, and answer "Template cannot be empty" ahead of the ARN checks; SendBulkTemplatedEmail treats a whitespace-only Template as empty. The Java and Python compatibility tests build the template ARN in the client's partition and region.