[
https://issues.apache.org/jira/browse/NIFI-8301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17297914#comment-17297914
]
ASF subversion and git services commented on NIFI-8301:
-------------------------------------------------------
Commit b12e43f7b75fbc5369f3c58f4ff8b5c391e558d0 in nifi's branch
refs/heads/support/nifi-1.13 from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=b12e43f ]
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 <[email protected]>
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: 20m
> 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)