Skip to content

Conversation

cearl1
Copy link
Contributor

@cearl1 cearl1 commented Oct 1, 2025

Wider context of change

IdGenerator.generate() can generate an ID with double dashes in it (--). This caused the Base64.getUrlDecoder().decode() call to throw an IllegalArgumentException, as only part of the ID was included as a parameter.

What’s changed

I've static mocked the IdGenerator here and made it return an example ID I generated previously. I've updated auth's test for this too as it would impact both of our builds :)

Checklist

  • Lambdas have correct permissions for the resources they're accessing.
  • Impact on orch and auth mutual dependencies has been checked.
  • Changes have been made to contract tests or not required.
  • Changes have been made to the simulator or not required.
  • Changes have been made to stubs or not required.
  • Successfully deployed to authdev or not required.
  • Successfully run Authentication acceptance tests against sandpit or not required.

- IdGenerator.generate() can generate an ID with double dashes in it (`--`). This causes the assertion on the entropy check to fail, as the whole ID wasn't being passed into Base64.getUrlDecoder().decode().
- I've static mocked the IdGenerator here and made it return an example ID I generated previously.
- I've updated auth's test for this too as it would impact both of our builds :)
@cearl1 cearl1 requested review from a team as code owners October 1, 2025 13:21
Copy link

sonarqubecloud bot commented Oct 1, 2025

@cearl1 cearl1 added this pull request to the merge queue Oct 7, 2025
Merged via the queue into main with commit 12e42b5 Oct 7, 2025
15 checks passed
@cearl1 cearl1 deleted the BAU/fix-flaky-test branch October 7, 2025 13:34
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.

2 participants