Mark Payne created NIFI-8042:
--------------------------------

             Summary: ReplaceText failing to update text when using Literal 
Replacement Strategy with Expression Language
                 Key: NIFI-8042
                 URL: https://issues.apache.org/jira/browse/NIFI-8042
             Project: Apache NiFi
          Issue Type: Bug
          Components: Extensions
            Reporter: Mark Payne


>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



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to