[ https://issues.apache.org/jira/browse/NIFI-8522?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17355076#comment-17355076 ]
ASF subversion and git services commented on NIFI-8522: ------------------------------------------------------- Commit f23dcb05f6d6c869fab453634bf094a01b42d121 in nifi's branch refs/heads/main from Timea Barna [ https://gitbox.apache.org/repos/asf?p=nifi.git;h=f23dcb0 ] NIFI-8640 Regression with NIFI-8522 NiFi can duplicate controller service during template generation This closes #5109. Signed-off-by: Tamas Palfy <tamas.bertalan.pa...@gmail.com> > NiFi can duplicate controller services when generating templates > ---------------------------------------------------------------- > > Key: NIFI-8522 > URL: https://issues.apache.org/jira/browse/NIFI-8522 > Project: Apache NiFi > Issue Type: Bug > Components: Core Framework > Reporter: Matthew Clarke > Assignee: Timea Barna > Priority: Major > Fix For: 1.14.0 > > Attachments: Screen Shot 2021-05-25 at 2.55.10 PM.png, Screen Shot > 2021-05-25 at 2.55.33 PM.png > > Time Spent: 50m > Remaining Estimate: 0h > > NiFi throws "The specified observer identifier already exists" exception when > trying to instantiate a template to the canvas. Parsing the template xml > reveals multiple controller services with same UUID. > Steps to reproduce: > 1. Create "PG-level1" > 2. within "PG-level1" create two new sub process groups "PG-level2-A" and > "PG-level2-B". > 3. Create a controller service(s) in "PG-level2-A" like AvroReader and > CSVRecordSetWriter. Add a processor like ConvertRecord and configure it to > reference these two controller services. > 4. Right click on the ConvertRecord processor and copy it. Exit > "PG-level2-A" and enter "PG-level2-B" and paste that copy processor. The > processor will show both configured controller services as "Incompatible > Controller Service Configured" and invalid bulletin will reflect the > properties reference controller services that do not exist. > 5. go up to "PG-level1" level and generate a template. Template is created > successfully. > 6. Try to instantiate this template to the canvas and it will only partially > instantiate and throw the "observer identifier already exist exception. > Inspection of the template shows that the controller services scoped to > PG-level2-A were added into the template again at the parent "PG-level1" > scope with same UUID. > The expected behavior is that the controller services do not get duplicated > and the processor in the instantiate template either has no configured > controller services or still reflects that it references controller > service(s) that do not exist. -- This message was sent by Atlassian Jira (v8.3.4#803005)