[ 
https://issues.apache.org/jira/browse/NIFI-8042?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17243967#comment-17243967
 ] 

ASF subversion and git services commented on NIFI-8042:
-------------------------------------------------------

Commit 29ea872f2cd06a61db36785caba027eb9699e744 in nifi's branch 
refs/heads/main from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=29ea872 ]

NIFI-8042: Fixed bug that was escaping Expression Language references for use 
in a Regular Expression (i.e., Pattern.quote) even though it wasn't being used 
in a Regular Expression

This closes #4685

Signed-off-by: Mike Thomsen <[email protected]>


> 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
>            Assignee: Mark Payne
>            Priority: Major
>             Fix For: 1.13.0
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> 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