[ 
https://issues.apache.org/jira/browse/NIFI-8431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17326659#comment-17326659
 ] 

Chris Sampson commented on NIFI-8431:
-------------------------------------

FYI I stumbled upon this when testing my changes for NIFI-2892 - included a 
change to 
[AbstractConfigurableComponent|https://github.com/apache/nifi/pull/4822/files#diff-d3c2e8ceca3ff4fb750d6cd36e94a9123c0d00c33f06cc8bf61e1c72d55a0f6fL129],
 although that's part of a much larger PR than would be needed to address just 
this ticket.

> Redundant validation of Dynamic Properties
> ------------------------------------------
>
>                 Key: NIFI-8431
>                 URL: https://issues.apache.org/jira/browse/NIFI-8431
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework
>    Affects Versions: 1.13.2
>            Reporter: Mark Bean
>            Priority: Major
>
> The validate method of AbstractConfigurableComponent was modified recently. 
> Where it use to loop through only supported property descriptors (via 
> getSupportedPropertyDescriptors method call), it now loops through all 
> descriptors in the context (via ValidationContext.getProperties.keySet() 
> call). This includes dynamic properties. Therefore, the subsequent validation 
> of dynamic properties is redundant, and can produce duplicate validation 
> errors.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to