You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Mike Thomsen (Jira)" <ji...@apache.org> on 2020/12/04 12:32:00 UTC
[jira] [Updated] (NIFI-8042) ReplaceText failing to update text
when using Literal Replacement Strategy with Expression Language
[ https://issues.apache.org/jira/browse/NIFI-8042?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Thomsen updated NIFI-8042:
-------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
> 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: 1.5h
> 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)