[
https://issues.apache.org/jira/browse/NIFI-13951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17895473#comment-17895473
]
ASF subversion and git services commented on NIFI-13951:
--------------------------------------------------------
Commit 78b68f6ea2d06424afc8e8f1da0f9831b487bdbf in nifi's branch
refs/heads/main from Shane Ardell
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=78b68f6ea2 ]
NIFI-13951: add warn policy to dropdown selection (#9478)
> 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
> Assignee: Shane Ardell
> Priority: Minor
> Time Spent: 40m
> Remaining Estimate: 0h
>
> 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)