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

Mark Bean commented on NIFI-12555:
----------------------------------

I attached code for a sample custom processor which shows this behavior.

> UI - Property with .dependsOn() incorrectly being displayed
> -----------------------------------------------------------
>
>                 Key: NIFI-12555
>                 URL: https://issues.apache.org/jira/browse/NIFI-12555
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core UI
>    Affects Versions: 1.24.0
>            Reporter: Mark Bean
>            Priority: Major
>         Attachments: TestCustomProcessor.java
>
>
> Consider PROPERTY_1 with:
> `
> .dependsOn(PROPERTY_2, "foo")
> `
> In the UI, when Property 2 is set to a value of "bar", Property 1 should not 
> be displayed. However, when the configuration is first opened, Property 1 is 
> displayed. The UI correctly updates only after re-selecting "bar" for 
> Property 2 - or even just opening its value and choosing "Cancel". In other 
> words, after taking any action to change any property, then Property 1 is 
> correctly removed from the UI.
> This appears to be a problem only for the initial display of component 
> properties, and not when they are refreshed and/or dependency rules are 
> evaluated.
> -It is possible this is related to changes introduced in NIFI-11593. Note 
> that the above behavior occurs even when PROPERTY_2 has specific allowed 
> values.-
> The same behavior is seen in 1.21.0, and NIFI-11593 has a fix version of 
> 1.22.0.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to