markobean commented on PR #6217:
URL: https://github.com/apache/nifi/pull/6217#issuecomment-1296282966

   @markap14 There is no issue with Input/Output ports. The flow.json.gz is 
accurate which is where the Input/Output ports become relevant. Rather it is 
the `FlowInfo` which contains incorrect information. This object contains ports 
by reference, but not their ID values directly; the references and their ID 
values are correct. However, `FlowInfo` does contain the UUID for the root 
process group. This is the value which is in error and needs to be corrected; 
this PR corrects this error. The only change required is the root group UUID 
referenced when creating the `FlowInfo` object.
   
   The PR was rebased to current main, but otherwise remains the same. No 
additional changes are required.
   
   As noted in the original JIRA ticket description, you can observe the error 
by starting NiFi with an existing flow.json.gz (and flow.xml.gz) but without 
authorizations.xml or users.xml. Also, the managed-authorizer should be used, 
not single-user-authorizer, and an Initial Admin User should be specified. You 
will see that the root group UUID found in the Component Access Policies in the 
resulting authorizations.xml is incorrect. It references the root group 
`identifier` rather than `instanceIdentifier`. Repeat the above process with 
this PR and you will note the `instanceIdentifier` is correctly used in the 
policies (authorizations.xml.)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to