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

ASF subversion and git services commented on NIFI-10673:
--------------------------------------------------------

Commit d390a0becf4ee88dce4094e59bb3ddc1b7786585 in nifi's branch 
refs/heads/main from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=d390a0becf ]

NIFI-10673: When a component is added to a ProcessGroup, we had a method called 
ensureUniqueVersionControlId but the method only took into accounts in that 
Process Group. Updated methods to now consider components in any Process Group 
that is part of the same Versioned Flow. Also added system test to verify the 
problem and the fix. Added Toolkit clients and additional methods as necessary 
in order to implement system tests

NIFI-10673: Addresed checkstyle issue

NIFI-10673: Removed TODO comment
Signed-off-by: Matthew Burgess <[email protected]>


> Copy & paste of a child PG when parent is under Version Control duplicates 
> Versioned Component IDs
> --------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-10673
>                 URL: https://issues.apache.org/jira/browse/NIFI-10673
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>            Priority: Major
>             Fix For: 1.19.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> To replicate, follow these steps:
>  # Create PG
>  # Start version control on PG
>  # Create PG1 inside PG and add a processor inside PG1
>  # Commit changes to PG
>  # Copy and paste PG1, naming the copy PG2
>  # Commit top-level PG
> At this point, the two Processors (the one in PG1 and the one in PG2) will 
> have the same Versioned Component ID. As a result, the flow that is pushed to 
> NiFi Registry or saved when downloading the flow will result in both 
> components having the same ID.
> This can cause NiFi to become confused when changing flow versions, and it 
> may attempt to apply changes to one of the Processors to the wrong Processor.
>  



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

Reply via email to