Skip to content
This repository was archived by the owner on Nov 16, 2026. It is now read-only.

Include correlationId on the missing customerId 400 - #29

Merged
WillCraig merged 1 commit into
mainfrom
fix/interactions-400-correlation-id
Oct 22, 2026
Merged

WillCraig merged 1 commit into
mainfrom
fix/interactions-400-correlation-id

Conversation

@WillCraig

Copy link
Copy Markdown
Owner

What changed:

  • GET /api/v1/interactions with no customerId returned a 400 Problem Details without correlationId. Every other error has it.
  • Cause: handleExceptionInternal only added the id when the body was already a ProblemDetail. For a missing query param the body is null and the superclass builds it afterwards. The handler now calls super first and adds the id to the body it returns.
  • Added list_missingCustomerId_shouldCarryTheRequestCorrelationId (from the coverage work, enabled here).

Why: so the claim that every error can be traced by correlation id is true.

How tested: mvn -B clean verify in backend. 100 tests, 0 failures, BUILD SUCCESS.

@WillCraig
WillCraig merged commit d0594bf into main Oct 22, 2026
8 checks passed
@WillCraig
WillCraig deleted the fix/interactions-400-correlation-id branch October 22, 2026 13:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant