[
https://issues.apache.org/jira/browse/NIFI-14436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
endzeit updated NIFI-14436:
---------------------------
Description:
The {{TestRunner}} should error out when implementation attempt to use a
property whose dependencies are not satisfied.
As of now, the property value set while the dependencies were satisfied
beforehand or the default value is returned. This can lead to the confusing
behaviours outlined in NIFI-14400.
The error should be opt-out, similar to existing checks such as
"setAllowRecursiveReads".
The error message should provide context around the dependency that was not
satisfied and that the check can be disabled.
was:
While investigating a framework-wide solution for NIFI-14400 I've noticed that
a lot of existing components access properties regardless of their dependencies.
Adjusting the behaviour of {{ProcessContext.getProperty}} or {{}} / {{}} xx
> TestRunner ensures properties with unsatisfied dependencies are not used
> ------------------------------------------------------------------------
>
> Key: NIFI-14436
> URL: https://issues.apache.org/jira/browse/NIFI-14436
> Project: Apache NiFi
> Issue Type: Sub-task
> Reporter: endzeit
> Assignee: endzeit
> Priority: Major
>
> The {{TestRunner}} should error out when implementation attempt to use a
> property whose dependencies are not satisfied.
> As of now, the property value set while the dependencies were satisfied
> beforehand or the default value is returned. This can lead to the confusing
> behaviours outlined in NIFI-14400.
> The error should be opt-out, similar to existing checks such as
> "setAllowRecursiveReads".
> The error message should provide context around the dependency that was not
> satisfied and that the check can be disabled.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)