[
https://issues.apache.org/jira/browse/NIFI-4417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard resolved NIFI-4417.
----------------------------------
Resolution: Feedback Received
Apache NiFi 1.x is no longer maintained and no new release is planned on the
1.x release line. Marking as resolved as part of a cleanup operation. Please
open a new one with an updated description if this is still relevant for NiFi
2.x.
> 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.0.0, 1.1.0, 1.2.0, 1.3.0
> Reporter: Bryan Bende
> Priority: Major
>
> 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
(v8.20.10#820010)