Fixed
Details
Assignee
Alejandro GalueAlejandro GalueReporter
Jan KeirseJan KeirseComponents
Fix versions
Affects versions
Priority
Major
Details
Details
Assignee
Alejandro Galue
Alejandro GalueReporter
Jan Keirse
Jan KeirseComponents
Fix versions
Affects versions
Priority
PagerDuty
PagerDuty
PagerDuty
Created November 26, 2013 at 10:43 AM
Updated January 27, 2017 at 4:21 PM
Resolved November 27, 2013 at 3:52 PM
If I have a filter like this:
<resource-filter field="oeDbKey">^[a-zA-Z]+$</resource-filter>
The attribute filterOperator has a value of and
The field oeDbKey is null
I would expect the filter to fail.
However, in opennms-services/src/main/java/org/opennms/netmgmt/threshd/ThresholdingSet.java in the method passedThresholdFilters there is only a warning:
} else { LOG.warn("passedThresholdFilters: can't find value of {} for resource {}", f.getField(), resource); }
As a result the filter passes.
I think the warning should be changed like this:
} else { LOG.warn("passedThresholdFilters: can't find value of {} for resource {}", f.getField(), resource); if (operator.equals("and")) return false; }