[
https://issues.apache.org/jira/browse/NIFI-15541?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18056816#comment-18056816
]
ASF subversion and git services commented on NIFI-15541:
--------------------------------------------------------
Commit fcbc059157f8b8fa82b1b46d7692c68ef039f1f9 in nifi's branch
refs/heads/main from Pierre Villard
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=fcbc059157 ]
NIFI-15541 Fixed Parameter Context binding for new Process Groups on Version
Upgrades (#10844)
Signed-off-by: David Handermann <[email protected]>
> Flow version upgrade binds new process groups to incorrect parameter context
> ----------------------------------------------------------------------------
>
> Key: NIFI-15541
> URL: https://issues.apache.org/jira/browse/NIFI-15541
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework, Flow Versioning
> Reporter: Pierre Villard
> Assignee: Pierre Villard
> Priority: Minor
> Time Spent: 1h
> Remaining Estimate: 0h
>
> When upgrading a versioned flow that introduces a new child process group,
> the new process group is incorrectly bound to a parameter context matched by
> name rather than using the same parameter context as its parent.
> Steps to reproduce:
> # Create a versioned flow v1 with Process Group A attached to Parameter
> Context P
> # Create v2 by adding a child Process Group B inside A, also attached to P
> # Import v1 twice using "do not keep existing parameter context" - this
> creates A1 with P, and A2 with P (1)
> # Upgrade A2 from v1 to v2
> Current behavior:
> The newly added Process Group B in A2 gets bound to P instead of P (1)
> Expected behavior:
> Process Group B should use P (1), the same parameter context as its parent A2
> Root cause:
> In StandardVersionedComponentSynchronizer.updateParameterContext(), when a
> new child process group is added during synchronization, it looks up
> parameter contexts by name globally rather than inheriting from the parent
> group.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)