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

ReplaceText failing to update text when using Literal Replacement Strategy with Expression Language

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.13.0
    • Extensions
    • None

    Description

      From mailing list:

      I've successfully tested Variable Registries in the Replacement Value field, but I still can't get it to work in the Search Value field with Replacement Strategy as Literal Replace and Evaluation as Entire Text.
       
      Here is something really weird. I created a GenerateFlowFile and used my ${tier1.linux} variable in the Custom Text field. Creates the flow file as expected, with the expected text. But then in my ReplaceText's Search Value field I use my ${tier1.linux} variable with Replacement being anything, and it does not ** successfully search and replace the text. Thoughts?
       
      GenerateFlowFile Values
      File Size: 0B
      Batch Size: 1
      Data Format: Text (granted, I'm using JSON in my official version, but it should still work)
      Unique FlowFiles: false
      Custom Text: ${tier1.linux}
      Character Set: UTF-8
      Mime Type: No value set
       
      ReplaceText Values
      Search Value: ${tier1.linux}
      Replacement Value: hello world
      Character Set: UTF-8
      Max Buff Size: 1MB (way more than I need)
      Replacement Strat: Literal Replace
      Evaluation Mode: Entire Text
      Line-b-Line: All

      Attachments

        Issue Links

          Activity

            People

              markap14 Mark Payne
              markap14 Mark Payne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h