[ 
https://issues.apache.org/jira/browse/NIFI-16001?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mike Thomsen resolved NIFI-16001.
---------------------------------
    Fix Version/s: 2.13.0
       Resolution: Fixed

> 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: 50m
>  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)

Reply via email to