Skip to content

Restore agent prosecutor authority access (CIMD-3294) - #60

Merged
allanmckenzie merged 1 commit into
release/25.104.xfrom
dev/restore-agent-prosecutor-access
Jul 3, 2026
Merged

Restore agent prosecutor authority access (CIMD-3294)#60
allanmckenzie merged 1 commit into
release/25.104.xfrom
dev/restore-agent-prosecutor-access

Conversation

@allanmckenzie

Copy link
Copy Markdown
Contributor

Problem

The Java 25 migration of access-control-sjp-providers recreated ProsecutingAuthorityAccess from main, which never contained the CIMD-3294 "agent prosecutors access" feature — that was released only on the 17.104.x line (PR #54). So getAgentProsecutorAuthorityAccess() was silently dropped on the 25.104.x stack.

Consumers depend on it — e.g. cpp-context-mi-reportdata's SJP ResultedCasesService / CasesCountQueryApi fail to compile against 25.104.x with cannot find symbol getAgentProsecutorAuthorityAccess().

Fix (additive)

  • ProsecutingAuthorityAccess: restore the agentProsecutorAuthorityAccess list, of(String, List<String>), getAgentProsecutorAuthorityAccess(), and hasAccess() honouring the agent list. The existing of(String) and behaviour are kept intact, so current callers/tests are unaffected.
  • ProsecutingAuthorityProvider: parse the agentProsecutorAuthorityAccess array from the user-details response and pass it to of(...).
  • Tests: added agent-access coverage to ProsecutingAuthorityAccessTest; existing tests unchanged and green (module: 17 tests, 0 failures).

Audited the other 15 commits on release/17.104.x not in main: all are release-pipeline version bumps except #45 (a dependency already present in 25.104.x) and #39 (changelog/version only) — CIMD-3294 was the only missing code.

🤖 Generated with Claude Code

The Java 25 migration recreated ProsecutingAuthorityAccess from main, which
never had the CIMD-3294 "agent prosecutors access" feature that was released on
the 17.104.x line. Restore it (additively, keeping of(String) so existing
callers/tests are unaffected):
- ProsecutingAuthorityAccess: agentProsecutorAuthorityAccess list, of(String,List),
  getAgentProsecutorAuthorityAccess(), and hasAccess() honouring the agent list.
- ProsecutingAuthorityProvider: parse the agentProsecutorAuthorityAccess array
  from the user-details response.
Consumers (e.g. mi-reportdata SJP resulted-cases/cases-count queries) depend on
getAgentProsecutorAuthorityAccess().
@cpp-github-management

Copy link
Copy Markdown

Passed

@allanmckenzie
allanmckenzie merged commit 6b71d1c into release/25.104.x Jul 3, 2026
3 checks passed
@allanmckenzie
allanmckenzie deleted the dev/restore-agent-prosecutor-access branch July 3, 2026 15:32
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