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

Joe Gresock edited comment on NIFI-15341 at 12/19/25 8:45 PM:
--------------------------------------------------------------

In case it is helpful, I also have a prototype for a simpler solution, which 
avoids adding a separate "live component external CS resolution" step, and 
instead takes advantage of the existing resolution code, and is a much smaller 
change.

https://github.com/apache/nifi/compare/main...gresockj:nifi:NIFI-15341-external-cs-resolution?expand=1

I've verified that this works importing a flow from registry at an older NiFi 
version, importing a flow definition with a Process Group creation from file 
from the UI, and replacing a PG using the API call noted in this JIRA, whereas 
all of these cases fail on the main branch.


was (Author: jgresock):
In case it is helpful, I also have a prototype for a simpler solution, which 
avoids adding a separate "live component external CS resolution" step, and 
instead takes advantage of the existing resolution code, and is a much smaller 
change.

https://github.com/apache/nifi/compare/main...gresockj:nifi:NIFI-15341-external-cs-resolution?expand=1

I've verified that this works importing a flow from registry at an older and 
current NiFi version, importing a flow definition with a Process Group creation 
from file from the UI, and replacing a PG using the API call noted in this JIRA.

> External Controller Service resolution can break with property migration
> ------------------------------------------------------------------------
>
>                 Key: NIFI-15341
>                 URL: https://issues.apache.org/jira/browse/NIFI-15341
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 2.7.1
>            Reporter: Joe Gresock
>            Assignee: Joe Gresock
>            Priority: Minor
>         Attachments: CS_Resolution.json
>
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> When importing or replacing a Process Group, External Controller Services can 
> fail to resolve if a component property was renamed between the versioned 
> flow and the currently installed bundle using property migration.
> To reproduce in 2.4.0 or later, download attached JSON file representing a 
> Process Group Replace request.  Then log into NiFi and copy the Bearer token. 
>  Then create a new blank process group in NiFi and copy its identifier for 
> below.
> Next, create a new StandardRestrictedSSLContextService at the root canvas and 
> name it "SSL Context Service".
> {code:java}
> BEARER_TOKEN=<paste bearer token>
> PG_ID=<pg id>
> curl -k -vv -X POST 
> https://localhost:8443/nifi-api/process-groups/$PG_ID/replace-requests -H 
> "Content-Type: application/json" -H "Authorization: Bearer $BEARER_TOKEN" -d 
> @CS_Resolution.json
> {code}
> Observe that the SSL Context Service property in the MongoDBControllerService 
> now references a UUID instead of the "SSL Context Service" service.



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

Reply via email to