[
https://issues.apache.org/jira/browse/NIFI-16099?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Payne resolved NIFI-16099.
-------------------------------
Fix Version/s: 2.11.0
Resolution: Fixed
> Controller Service Provider should be passed to Connectors
> ----------------------------------------------------------
>
> Key: NIFI-16099
> URL: https://issues.apache.org/jira/browse/NIFI-16099
> Project: Apache NiFi
> Issue Type: Improvement
> Reporter: Bob Paulin
> Priority: Major
> Fix For: 2.11.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> {{StandardFlowManager.createConnector}} builds the connector via
> {{{}ExtensionBuilder{}}}, but the builder chain is missing the
>
> {{.controllerServiceProvider(...)}}
>
> every other builder in the same file uses this call.
> Compare with, for example, {{{}buildProcessorNode{}}},
> {{{}buildControllerServiceNode{}}}, {{{}buildReportingTaskNode{}}},
> {{{}buildFlowAnalysisRuleNode{}}}, {{buildFlowRegistryClient}} — every one of
> them calls:
> {{{}.controllerServiceProvider(flowController.getControllerServiceProvider()){}}}.
>
> {{ExtensionBuilder.buildConnector(...)}} also doesn't
> {{requireNonNull(serviceProvider, ...)}} (unlike every other builder in the
> file), so the null slips silently into the {{StandardConnectorNode}}
> constructor.
>
> This is required for the connector code to use the ControllerServiceProvider
> which will be required for Migrations. SEE
> https://github.com/apache/nifi/pull/11240
--
This message was sent by Atlassian Jira
(v8.20.10#820010)