Skip to content

fix(#1241): an XML error response carries the request's own ID - #1412

Merged
scttfrdmn merged 1 commit into
mainfrom
fix/1241-xml-error-request-id
Oct 5, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
fix/1241-xml-error-request-id

Conversation

@scttfrdmn

Copy link
Copy Markdown
Owner

The Query now closes with beside , as the
smithy awsQuery/restXml protocols and SQS's developer guide publish it.
EC2's is the request's ID rather than SUBSTRATE, and IAM's
handler-built error documents carry it too. The value is the recorded
Event.RequestID, so a replayed refusal is byte-identical to its recording; an
over-the-wire test covers SNS, RDS, ELB classic, IAM and EC2 and replays the
stream with no differences.

S3 keeps SUBSTRATE, because its error bodies are built without the request
context and pipeline-raised S3 errors must match the plugin's own (#480).

Fixes #1241

Compatibility

Every Query error body gains a trailing <RequestId>. EC2 and IAM error request IDs change from SUBSTRATE/stub-request-id to the per-request ID. A consumer comparing raw error bodies will see the difference; codes, messages and statuses are unchanged.

The Query <ErrorResponse> now closes with <RequestId> beside <Error>, as the
smithy awsQuery/restXml protocols and SQS's developer guide publish it.
EC2's <RequestID> is the request's ID rather than SUBSTRATE, and IAM's
handler-built error documents carry it too. The value is the recorded
Event.RequestID, so a replayed refusal is byte-identical to its recording; an
over-the-wire test covers SNS, RDS, ELB classic, IAM and EC2 and replays the
stream with no differences.

S3 keeps SUBSTRATE, because its error bodies are built without the request
context and pipeline-raised S3 errors must match the plugin's own (#480).

Fixes #1241
@codecov

codecov Bot commented Oct 5, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.93939% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
emulator/server.go 75.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@scttfrdmn
scttfrdmn merged commit 6044d0a into main Oct 5, 2026
18 checks passed
@scttfrdmn
scttfrdmn deleted the fix/1241-xml-error-request-id branch October 5, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No XML error response carries a request ID, for any Query-protocol plugin

1 participant