You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/12/18 09:22:00 UTC

[jira] [Commented] (NIFI-5905) Secure S2S fails with NullPointerException

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

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

Commit 4b70465ea574b461e105c5fb2bafedd96589dd08 in nifi's branch refs/heads/master from [~ijokarumawak]
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=4b70465 ]

NIFI-5905 Secure S2S fails with NullPointerException

The constructor arguments should be set to instance variables so that
subsequent code can refer "this.*".


> Secure S2S fails with NullPointerException
> ------------------------------------------
>
>                 Key: NIFI-5905
>                 URL: https://issues.apache.org/jira/browse/NIFI-5905
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.9.0
>            Reporter: Koji Kawamura
>            Assignee: Koji Kawamura
>            Priority: Major
>             Fix For: 1.9.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> NIFI-5769 refactored FlowController into smaller classes like StandardFlowManager, and introduced this issue.
> When StandardFlowManager is instantiated, authorizer is carried from FlowController, but FlowController's authorizer hasn't been set at this point. And causes NPE later.
> https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/FlowController.java#L486
> {code}
> 2018-12-18 09:53:13,042 ERROR [NiFi Web Server-438] o.a.nifi.web.api.config.ThrowableMapper An unexpected error has occurred: java.lang.NullPointerException. Returning Internal Server Error response.
> java.lang.NullPointerException: null
>         at org.apache.nifi.authorization.resource.Authorizable.checkAuthorization(Authorizable.java:124)
>         at org.apache.nifi.authorization.resource.DataAuthorizable.checkAuthorization(DataAuthorizable.java:71)
>         at org.apache.nifi.authorization.resource.Authorizable.checkAuthorization(Authorizable.java:183)
>         at org.apache.nifi.remote.StandardRootGroupPort.checkUserAuthorization(StandardRootGroupPort.java:386)
>         at org.apache.nifi.authorization.StandardAuthorizableLookup$8.checkAuthorization(StandardAuthorizableLookup.java:223)
>         at org.apache.nifi.web.api.DataTransferResource.authorizeDataTransfer(DataTransferResource.java:146)
>         at org.apache.nifi.web.api.DataTransferResource.lambda$createPortTransaction$0(DataTransferResource.java:192)
>         at org.apache.nifi.web.StandardNiFiServiceFacade.authorizeAccess(StandardNiFiServiceFacade.java:374)
>         at org.apache.nifi.web.StandardNiFiServiceFacade$$FastClassBySpringCGLIB$$358780e0.invoke(<generated>)
>         at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
>         at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:736)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
>         at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
>         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
>         at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:671)
>         at org.apache.nifi.web.StandardNiFiServiceFacade$$EnhancerBySpringCGLIB$$e3909da1.authorizeAccess(<generated>)
>         at org.apache.nifi.web.api.DataTransferResource.createPortTransaction(DataTransferResource.java:191)
>         at sun.reflect.GeneratedMethodAccessor78.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:498)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)