From 442858127bedda992921953fc1943f1973803bb5 Mon Sep 17 00:00:00 2001 From: Bryan Bende Date: Tue, 10 Dec 2019 14:00:48 -0500 Subject: [PATCH] NIFI-6938 Fixing import-flow-version CLI command to correctly copy over fields This closes #3925. Signed-off-by: Mark Payne --- .../cli/impl/command/registry/flow/ImportFlowVersion.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nifi-toolkit/nifi-toolkit-cli/src/main/java/org/apache/nifi/toolkit/cli/impl/command/registry/flow/ImportFlowVersion.java b/nifi-toolkit/nifi-toolkit-cli/src/main/java/org/apache/nifi/toolkit/cli/impl/command/registry/flow/ImportFlowVersion.java index 49e4dcd4f5..d9a3530a03 100644 --- a/nifi-toolkit/nifi-toolkit-cli/src/main/java/org/apache/nifi/toolkit/cli/impl/command/registry/flow/ImportFlowVersion.java +++ b/nifi-toolkit/nifi-toolkit-cli/src/main/java/org/apache/nifi/toolkit/cli/impl/command/registry/flow/ImportFlowVersion.java @@ -95,7 +95,9 @@ public class ImportFlowVersion extends AbstractNiFiRegistryCommand final VersionedFlowSnapshot snapshot = new VersionedFlowSnapshot(); snapshot.setSnapshotMetadata(metadata); snapshot.setFlowContents(deserializedSnapshot.getFlowContents()); - + snapshot.setExternalControllerServices(deserializedSnapshot.getExternalControllerServices()); + snapshot.setParameterContexts(deserializedSnapshot.getParameterContexts()); + snapshot.setFlowEncodingVersion(deserializedSnapshot.getFlowEncodingVersion()); final VersionedFlowSnapshot createdSnapshot = snapshotClient.create(snapshot); final VersionedFlowSnapshotMetadata createdMetadata = createdSnapshot.getSnapshotMetadata();