[
https://issues.apache.org/jira/browse/NIFI-16001?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18126777#comment-18126777
]
ASF subversion and git services commented on NIFI-16001:
--------------------------------------------------------
Commit e0d63a6b86b70c6a5cbe285794a12bbbb1d54f43 in nifi's branch
refs/heads/main from Nanjesh Ramesh
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=e0d63a6b86b ]
NIFI-16001 Remove python-unit-tests profile from nifi-python-extension-api
(#11801)
Signed-off-by: David Handermann <[email protected]>
> String around an expression language in python processor is cut
> ---------------------------------------------------------------
>
> Key: NIFI-16001
> URL: https://issues.apache.org/jira/browse/NIFI-16001
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Affects Versions: 2.9.0
> Environment: Podman 5.8.2 with official Nifi image
> Reporter: Fabian Reiber
> Priority: Minor
> Fix For: 2.13.0
>
> Time Spent: 1.5h
> Remaining Estimate: 0h
>
> I try to use an expression language in a python processor. It works pretty
> fine, but when I use something like "${my_attribute}_foo_bar" (where
> "my_attribute" has the value "hello") as the property value, everything after
> the expression is cut. Just "hello" is shown. If I use a parameter from the
> context like "#\{my_attribute}_foo_bar", it works and the value is
> "hello_foo_bar". I was wondering, if I am doing something wrong. But I found
> the
> [WritePropertyToFlowFile|https://github.com/apache/nifi/blob/rel/nifi-2.9.0/nifi-extension-bundles/nifi-py4j-extension-bundle/nifi-python-test-extensions/src/main/resources/extensions/WritePropertyToFlowFile.py]
> processor and tried it. It shows the same behaviour.
> It can be workarounded with "${my_attribute:append('_foo_bar')}".
--
This message was sent by Atlassian Jira
(v8.20.10#820010)