[
https://issues.apache.org/jira/browse/NIFI-14765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard updated NIFI-14765:
----------------------------------
Fix Version/s: 2.5.0
Resolution: Fixed
Status: Resolved (was: Patch Available)
> Flow Registry Client policies break user endpoint
> -------------------------------------------------
>
> Key: NIFI-14765
> URL: https://issues.apache.org/jira/browse/NIFI-14765
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 2.5.0
> Reporter: Pierre Villard
> Assignee: David Handermann
> Priority: Major
> Fix For: 2.5.0
>
> Time Spent: 50m
> Remaining Estimate: 0h
>
> NIFI-14541 introduced the possibility to set policies on registry clients to
> control write access on specific registry clients. A small bug on how it
> introduced the ResourceType is causing the users view to break.
> {code:java}
> 2025-07-18 10:38:21,994 INFO [NiFi Web Server-37]
> o.a.n.w.a.c.IllegalArgumentExceptionMapper
> java.lang.IllegalArgumentException: An unexpected type of resource in this
> policy /controller}. Returning Bad Request} response.
> java.lang.IllegalArgumentException: An unexpected type of resource in this
> policy /controller
> at
> org.apache.nifi.authorization.StandardAuthorizableLookup.getAccessPolicyByResource(StandardAuthorizableLookup.java:668)
> at
> org.apache.nifi.authorization.StandardAuthorizableLookup.getAccessPolicy(StandardAuthorizableLookup.java:617)
> at
> org.apache.nifi.authorization.StandardAuthorizableLookup.getAuthorizableFromResource(StandardAuthorizableLookup.java:610)
> at
> org.apache.nifi.web.StandardNiFiServiceFacade.createComponentReferenceEntity(StandardNiFiServiceFacade.java:2588)
> at
> org.apache.nifi.web.StandardNiFiServiceFacade.createAccessPolicySummaryEntity(StandardNiFiServiceFacade.java:2610)
> at
> org.apache.nifi.web.StandardNiFiServiceFacade.lambda$createUserEntity$193(StandardNiFiServiceFacade.java:4626)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)