Gábor Gyimesi created MINIFICPP-1830:
----------------------------------------

             Summary: 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


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.7#820007)

Reply via email to