mirror of https://github.com/apache/nifi.git
NIFI-4351 - Fix for SiteToSiteProvenanceReportingTask when removing event type or component ID filters
This closes #2127.
This commit is contained in:
parent
9ebf2cfaf1
commit
c9789adf21
|
@ -146,12 +146,16 @@ public class SiteToSiteProvenanceReportingTask extends AbstractSiteToSiteReporti
|
|||
getLogger().warn(type + " is not a correct event type, removed from the filtering.");
|
||||
}
|
||||
}
|
||||
} else {
|
||||
eventTypes.clear();
|
||||
}
|
||||
|
||||
// initialize component ID filtering
|
||||
final String[] componentIdList = StringUtils.stripAll(StringUtils.split(context.getProperty(FILTER_COMPONENT_ID).getValue(), ','));
|
||||
if(componentIdList != null) {
|
||||
componentIds.addAll(Arrays.asList(componentIdList));
|
||||
} else {
|
||||
componentIds.clear();
|
||||
}
|
||||
|
||||
// set a boolean whether filtering will be applied or not
|
||||
|
|
Loading…
Reference in New Issue