You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Bryan Bende (JIRA)" <ji...@apache.org> on 2017/09/25 13:39:00 UTC

[jira] [Created] (NIFI-4417) ReplaceText does not always evaluate Search Value EL against flow file

Bryan Bende created NIFI-4417:
---------------------------------

             Summary: ReplaceText does not always evaluate Search Value EL against flow file
                 Key: NIFI-4417
                 URL: https://issues.apache.org/jira/browse/NIFI-4417
             Project: Apache NiFi
          Issue Type: Bug
    Affects Versions: 1.3.0, 1.2.0, 1.1.0, 1.0.0
            Reporter: Bryan Bende


When using the regex replacement strategy with expression language for the Search Value, there are two places where the expression language is evaluated...

Once to obtain the number of capturing groups which doesn't use the current flow file:

https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ReplaceText.java#L509

Then later to perform the actual search, which does use the current flow file:

https://github.com/apache/nifi/blob/master/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/ReplaceText.java#L522

Seems like these would need to be in sync. This may be related to NIFI-4272.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)