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

Joe Witt updated NIFI-9416:
---------------------------
    Fix Version/s: 1.15.1

> NPE when updating parameter context without "inheritedParameterContexts" array
> ------------------------------------------------------------------------------
>
>                 Key: NIFI-9416
>                 URL: https://issues.apache.org/jira/browse/NIFI-9416
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.15.0
>            Reporter: Joe Gresock
>            Assignee: Joe Gresock
>            Priority: Major
>             Fix For: 1.16.0, 1.15.1
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Client code that submit parameter context updates will likely fail due to the 
> following exception when the "inheritedParameterContexts" array is omitted 
> from the request entity:
> {code:java}
> java.lang.NullPointerException: null
>       at 
> org.apache.nifi.web.dao.impl.StandardParameterContextDAO.getInheritedParameterContexts(StandardParameterContextDAO.java:282)
>       at 
> org.apache.nifi.web.dao.impl.StandardParameterContextDAO.verifyUpdate(StandardParameterContextDAO.java:296)
>       at 
> org.apache.nifi.web.dao.impl.StandardParameterContextDAO$$FastClassBySpringCGLIB$$7099e091.invoke(<generated>)
>       at 
> org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)
>       at 
> org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:783)
>       at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
>       at 
> org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
>       at 
> org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:97)
>       at 
> org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)
>       at 
> org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
>       at 
> org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:698)
>       at 
> org.apache.nifi.web.dao.impl.StandardParameterContextDAO$$EnhancerBySpringCGLIB$$56bae42f.verifyUpdate(<generated>)
>       at 
> org.apache.nifi.web.StandardNiFiServiceFacade.verifyUpdateParameterContext(StandardNiFiServiceFacade.java:1190)
> {code}
> Since clients prior to 1.15.0 did not know about inherited parameter 
> contexts, the only workaround is to add "inheritedParameterContexts": []



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to