NIFI-9352: Consider all property values in component references

- Ensure that we consider all property values to determine if a component references a variable, not just 'supported' (i.e., well-known/non-user-defined) properties

This closes #5499

Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
Mark Payne 2021-10-30 10:20:42 -04:00 committed by exceptionfactory
parent 1c4ee93e68
commit 09feed9df6
No known key found for this signature in database
GPG Key ID: 29B6A52D2AAE8DBA
1 changed files with 1 additions and 1 deletions

View File

@ -3452,7 +3452,7 @@ public final class StandardProcessGroup implements ProcessGroup {
}
private boolean isComponentImpactedByVariable(final ComponentNode component, final String variableName) {
final List<PropertyDescriptor> propertyDescriptors = component.getPropertyDescriptors();
final Set<PropertyDescriptor> propertyDescriptors = component.getRawPropertyValues().keySet();
for (final PropertyDescriptor descriptor : propertyDescriptors) {
final PropertyConfiguration propertyConfiguration = component.getProperty(descriptor);
if (propertyConfiguration.getVariableImpact().isImpacted(variableName)) {