[ 
https://issues.apache.org/jira/browse/NIFI-13235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Handermann resolved NIFI-13235.
-------------------------------------
    Fix Version/s: 2.0.0-M4
         Assignee: Bryan Bende
       Resolution: Fixed

> Import from registry to a PG without read permissions causes NPE
> ----------------------------------------------------------------
>
>                 Key: NIFI-13235
>                 URL: https://issues.apache.org/jira/browse/NIFI-13235
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 2.0.0-M2
>            Reporter: Bryan Bende
>            Assignee: Bryan Bende
>            Priority: Minor
>             Fix For: 2.0.0-M4
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> If you are inside a PG where you have WRITE permissions, but not READ 
> permissions, and you import a new PG from a registry client, it results in an 
> unexpected error page and an NPE in the logs:
> {code:java}
> 2024-05-14 13:41:46,946 ERROR [NiFi Web Server-139] 
> o.a.nifi.web.api.config.ThrowableMapper An unexpected error has occurred: 
> java.lang.NullPointerException: Cannot invoke 
> "org.apache.nifi.web.api.dto.ProcessGroupDTO.getId()" because the return 
> value of "org.apache.nifi.web.api.entity.ProcessGroupEntity.getComponent()" 
> is null. Returning Internal Server Error response.
> java.lang.NullPointerException: Cannot invoke 
> "org.apache.nifi.web.api.dto.ProcessGroupDTO.getId()" because the return 
> value of "org.apache.nifi.web.api.entity.ProcessGroupEntity.getComponent()" 
> is null
>         at 
> org.apache.nifi.web.api.ProcessGroupResource.lambda$createProcessGroup$18(ProcessGroupResource.java:1016)
>         at 
> org.apache.nifi.web.api.ApplicationResource.withWriteLock(ApplicationResource.java:691)
>         at 
> org.apache.nifi.web.api.ProcessGroupResource.createProcessGroup(ProcessGroupResource.java:988)
>  {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to