[
https://issues.apache.org/jira/browse/MINIFICPP-1292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marton Szasz resolved MINIFICPP-1292.
-------------------------------------
Fix Version/s: (was: 1.0.0)
Resolution: Duplicate
> Properties with an allowed list of values should check their input
> ------------------------------------------------------------------
>
> Key: MINIFICPP-1292
> URL: https://issues.apache.org/jira/browse/MINIFICPP-1292
> Project: Apache NiFi MiNiFi C++
> Issue Type: Improvement
> Reporter: Ferenc Gerlits
> Priority: Minor
>
> If you declare a Property of a processor with a list of allowed values (using
> {{withAllowableValues}}) and then give this property a non-allowed value when
> you configure the processor, it will not automatically throw an exception,
> only if the processor code checks the property in {{onSchedule()}}.
> The heartbeat will contain the list of allowed values, so if you use a C2
> client to set up the configuration, then this can be prevented by the client,
> so this is not a major issue.
> Nevertheless, the Property itself should verify that it is valid, so each
> processor doesn't need to check them in {{onSchedule()}}, or risk not working
> correctly when configured manually. Since this change may break existing
> deployments, it should be rolled out with a major version change.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)