[
https://issues.apache.org/jira/browse/NIFI-8190?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17276643#comment-17276643
]
ASF subversion and git services commented on NIFI-8190:
-------------------------------------------------------
Commit e0a8b479fd01d6d5dcac3df8aa32daaff67eb0c4 in nifi's branch
refs/heads/main from Bryan Bende
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=e0a8b47 ]
NIFI-8190 Protect against property that references missing controller service
> NPE enabling controller services on PG when reference doesn't exist
> -------------------------------------------------------------------
>
> Key: NIFI-8190
> URL: https://issues.apache.org/jira/browse/NIFI-8190
> Project: Apache NiFi
> Issue Type: Bug
> Reporter: Bryan Bende
> Assignee: Bryan Bende
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> {code:java}
> 2021-02-01 13:41:34,538 ERROR [Framework Task Thread Thread-3]
> org.apache.nifi.engine.FlowEngine Uncaught Exception in Runnable task
> java.lang.NullPointerException: null
> at
> org.apache.nifi.controller.service.StandardControllerServiceProvider.enableControllerServices(StandardControllerServiceProvider.java:237)
> at
> org.apache.nifi.controller.service.StandardControllerServiceProvider.lambda$enableControllerServicesAsync$0(StandardControllerServiceProvider.java:225)
> at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748) {code}
> Steps to reproduce:
> 1) Make a flow with CS in root PG, and CS in child PG references the CS in
> parent
> 2) Version control to registry
> 3) Delete everything from NiFi side
> 4) Import flow from registry, now have single CS in child, referencing
> missing CS
> 5) Issue curl command to enable services on the child PG:
> curl -H "Content-Type: application/json" -X PUT --data "\{ \"id\" :
> \"5eddbdcc-0177-1000-22fe-321b6445813b\", \"state\" : \"ENABLED\" }"
> http://localhost:8080/nifi-api/flow/process-groups/5eddbdcc-0177-1000-22fe-321b6445813b/controller-services
--
This message was sent by Atlassian Jira
(v8.3.4#803005)