Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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
- fixes
-
NIFI-8053 ReplaceText with Expression Language in Match Group results in Data Loss/Corruption
- Resolved
- links to