[ 
https://issues.apache.org/jira/browse/MINIFICPP-1830?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gábor Gyimesi resolved MINIFICPP-1830.
--------------------------------------
    Fix Version/s: 0.13.0
       Resolution: Fixed

> Verify regex properties in processors in case it is set to empty
> ----------------------------------------------------------------
>
>                 Key: MINIFICPP-1830
>                 URL: https://issues.apache.org/jira/browse/MINIFICPP-1830
>             Project: Apache NiFi MiNiFi C++
>          Issue Type: Bug
>            Reporter: Gábor Gyimesi
>            Assignee: Gábor Gyimesi
>            Priority: Minor
>             Fix For: 0.13.0
>
>          Time Spent: 3h
>  Remaining Estimate: 0h
>
> When we moved from RegexUtils to std::regex our RegexUtilsTests were removed, 
> but there were some changes between the functionalities. In case an empty 
> regex is set std::regex matches on an empty pattern but our old RegexUtils 
> did not. When reverting to RegexUtils from std::regex due to an std::regex 
> bug, we stayed with the std::regex behaviour.
> There are some processors where a property sets a regex pattern. If that 
> property is left empty then the processor's behavior may have changed. We 
> should check all processors where these a regex property is present and 
> change the member regex to std::optional and check if the member is set 
> before trying to match that regex.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to