Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-4417

ReplaceText does not always evaluate Search Value EL against flow file

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.0, 1.1.0, 1.2.0, 1.3.0
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bbende Bryan Bende
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: