Mark Payne created NIFI-3733:
--------------------------------
Summary: StandardValidationContext may use wrong default value for
PropertyDescriptor if getSupportedPropertyDescriptors returns a modified
version of the Descriptor.
Key: NIFI-3733
URL: https://issues.apache.org/jira/browse/NIFI-3733
Project: Apache NiFi
Issue Type: Bug
Components: Core Framework
Reporter: Mark Payne
Assignee: Mark Payne
If a component overrides the getSupportedPropertyDescriptors() and then returns
something like:
{code}
new
PropertyDescriptor.Builder().fromPropertyDescriptor(MY_DESCRIPTOR).defaultValue("hello").build()
{code}
Then when StandardValidationContext.getProperty(MY_DESCRIPTOR).getValue() is
called, if no value has been explicitly set for MY_DESCRIPTOR, then the default
value that will be used is that of MY_DESCRIPTOR instead of the descriptor
returned by getSupportedPropertyDescriptors(). We should instead be using the
default value returned by the descriptor in getSupportedPropertyDescriptors().
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)