[
https://issues.apache.org/jira/browse/MINIFICPP-2074?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Marton Szasz updated MINIFICPP-2074:
------------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
> Fix time-period/integer validated properties
> --------------------------------------------
>
> Key: MINIFICPP-2074
> URL: https://issues.apache.org/jira/browse/MINIFICPP-2074
> Project: Apache NiFi MiNiFi C++
> Issue Type: Bug
> Reporter: Marton Szasz
> Assignee: Martin Zink
> Priority: Major
> Time Spent: 6h 50m
> Remaining Estimate: 0h
>
> Currently we have mixed validation for time-period like properties. Some has
> time-period validators (which require explicit units) and some have simple
> integer validators (which require no units).
> One approach would be to use time-period validators everywhere, but that
> could break compatibility with thirdparty C2 servers, and NiFi/MiNiFi Java
> also has this problem.
> Another approach would be to fix the configuration during minifi startup, to
> fix the property based on the configured validator. This would mean a
> time-period validated property would change from "100" to "100 ms" on startup
> and an integer validated property would change from "1min to 60000" on
> startup.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)