You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/03/09 07:49:00 UTC

[jira] [Commented] (NIFI-8301) Escaping Parameter references not working

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

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

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

NIFI-8301: When we create a PreparedQuery in the StandardProcessContext, we do so with the effective property values. As a result, the Parameters have already been evaluated, so we need to use Query.prepareWithParametersPreEvaluated instead of Query.prepare

Signed-off-by: Pierre Villard <pi...@gmail.com>

This closes #4874.


> Escaping Parameter references not working
> -----------------------------------------
>
>                 Key: NIFI-8301
>                 URL: https://issues.apache.org/jira/browse/NIFI-8301
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Mark Payne
>            Assignee: Mark Payne
>            Priority: Major
>             Fix For: 1.14.0, 1.13.1
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> If a processor/controller service attempts to escape a parameter reference, the escaping is ignored. For example, if I use GenerateFlowFile and I add 3 user-defined properties to it:
> abc1 = #\{abc}
> abc2 = ##\{abc}
> abc3 = ${#\{abc}}
> And I define a Parameter Context with a parameter: abc = xyz
> The FlowFile generated should have the following attributes:
> abc1 = xyz
> abc2 = #\{abc}
> abc3 = xyz
> But the output actually has the following attributes:
> abc1 = xyz
> abc2 = xyz
> abc3 = xyz



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