diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core-api/src/main/java/org/apache/nifi/controller/AbstractComponentNode.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core-api/src/main/java/org/apache/nifi/controller/AbstractComponentNode.java index 383bf0b3c2..6a930f4272 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core-api/src/main/java/org/apache/nifi/controller/AbstractComponentNode.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core-api/src/main/java/org/apache/nifi/controller/AbstractComponentNode.java @@ -580,11 +580,15 @@ public abstract class AbstractComponentNode implements ComponentNode { final Map props = new LinkedHashMap<>(); for (final PropertyDescriptor descriptor : supported) { if (descriptor != null) { - props.put(descriptor, descriptor.getDefaultValue()); + final PropertyDescriptor upToDateDescriptor = getPropertyDescriptor(descriptor.getName()); + props.put(upToDateDescriptor, upToDateDescriptor.getDefaultValue()); } } - properties.forEach((descriptor, config) -> props.put(getPropertyDescriptor(descriptor.getName()), valueFunction.apply(descriptor, config))); + properties.forEach((descriptor, config) -> { + final PropertyDescriptor upToDateDescriptor = getPropertyDescriptor(descriptor.getName()); + props.put(upToDateDescriptor, valueFunction.apply(upToDateDescriptor, config)); + }); return props; } }