Files
floci/src
Hector Ventura 8893d2c51e fix(sqs): render Query-protocol errors as XML instead of leaking JSON (#1732)
* fix(sqs): render Query-protocol errors as XML instead of leaking JSON

SqsQueryHandler was the only Query handler without top-level error wrapping,
so AwsExceptions escaped to the global JAX-RS mapper and rendered a JSON body
(application/json, __type) on the XML Query path. Wrap the dispatch like every
other Query handler and emit the standard ErrorResponse envelope with the
legacy Query error codes (QueueAlreadyExists, AWS.SimpleQueueService.
NonExistentQueue). The existing conflicting-attributes test pinned the leaked
JSON __type code and now asserts the XML shape; the JSON protocol path is
unchanged.

* test(cloudformation): assert legacy Query error code in assertQueueAbsent

The StackSets helper probes queue absence over the SQS Query protocol but
asserted QueueDoesNotExist, the JSON-protocol __type that only appeared there
because Query errors leaked through the JSON mapper. With Query errors now
rendered as XML, assert the legacy code AWS.SimpleQueueService.NonExistentQueue
and the 400 status.
2026-07-05 09:14:23 -05:00
..