Pierre Villard created NIFI-13951:
-------------------------------------

             Summary: Only Enforce policy is available in the UI for Flow 
Analysis Rules
                 Key: NIFI-13951
                 URL: https://issues.apache.org/jira/browse/NIFI-13951
             Project: Apache NiFi
          Issue Type: Bug
    Affects Versions: 2.0.0
            Reporter: Pierre Villard


In the UI when configuring a Flow Analysis Rule, in the Settings tab, there is 
a dropdown list for the enforcement policy. Right now, only ENFORCE is 
available when two options should be available: ENFORCE and WARN.

I believe this is located here:

[https://github.com/apache/nifi/pull/8241/files#diff-9fe55d45b82880244c1dd961b38bd57e5108c5f2d1c8e6a7bc297efd5c7fcdb2R82-R88]

Because of this, right now, when a rule is added and no modification of the 
configuration is done, the rule will have a "WARN" enforcement policy because 
this is the current default in the backend.

[https://github.com/apache/nifi/blob/main/nifi-framework-bundle/nifi-framework/nifi-framework-components/src/main/java/org/apache/nifi/controller/flowanalysis/AbstractFlowAnalysisRuleNode.java#L104]

Only in the case where the configuration of the rule is changed it will switch 
to ENFORCE since this is the only option in the UI.

The WARN enforcement policy should be added to the dropdown list and should be 
the default to align with the backend.



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

Reply via email to