Skip to content

DTSCCI-6319 Updated RoleAssignmentService to return an empty list when CCD/RAS returns no role assignments - #3006

Open
matt-goodwin-solirius wants to merge 1 commit into
masterfrom
DTSCCI-6319
Open

DTSCCI-6319 Updated RoleAssignmentService to return an empty list when CCD/RAS returns no role assignments#3006
matt-goodwin-solirius wants to merge 1 commit into
masterfrom
DTSCCI-6319

Conversation

@matt-goodwin-solirius

@matt-goodwin-solirius matt-goodwin-solirius commented Sep 7, 2026

Copy link
Copy Markdown

JIRA link (if applicable)

https://tools.hmcts.net/jira/browse/DTSCCI-6319

Change description

The functional test was failing on https://github.com/hmcts/cmc-citizen-frontend preview pipelines because claim creation triggered LINK_LETTER_HOLDER. CCD data-store queried role assignments for the new user and returned a response with no role list. RoleAssignmentService then called .stream() on the null list, causing a 500 response.

The claim-store wrapped this as:

  • Failed updating claim in CCD store on event LINK_LETTER_HOLDER

  • The claim therefore never reached OPEN, and the later DisputesAll request failed with 422: The case status did not qualify for the event.

  • This allows CCD data-store to continue granting case access when the user has no existing role assignments. The normal role-assignment path is unchanged.
    This allows:

  1. Claim creation to complete LINK_LETTER_HOLDER.
  2. The claim to transition to OPEN.
  3. Defendant linking to complete.
  4. The Playwright FT to submit the DisputesAll response successfully.

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[ ] No

…n CCD/RAS returns no role assignments.This prevents the roles.stream() NullPointerException during grantAccessToCase.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant