[ 
https://issues.apache.org/jira/browse/NIFI-14765?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18008222#comment-18008222
 ] 

ASF subversion and git services commented on NIFI-14765:
--------------------------------------------------------

Commit 08a558e151db0f5f64d77dac4511d078547b10ee in nifi's branch 
refs/heads/main from David Handermann
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=08a558e151 ]

NIFI-14765 Corrected Authorizable Lookup for Nested Controller Objects

- Added Resource Type resolution for Registry Client and Flow Analysis Rule 
components nested under the Controller

Signed-off-by: Pierre Villard <[email protected]>

This closes #10110.


> 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
>          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)

Reply via email to