You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Dennis Jaheruddin (Jira)" <ji...@apache.org> on 2020/06/20 22:55:00 UTC

[jira] [Commented] (NIFI-7383) Attribute value duplicated when using more than one escaped variable

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

Dennis Jaheruddin commented on NIFI-7383:
-----------------------------------------

Just did some checks, and it is indeed very confusing:
 * $${abc} becomes ${abc} as expected

But as soon as you have more than one variable, it gets very confusing
 * $${abc}$${def} becomes ${abc}${abc}${def}
 * $${abc}  hello $${def} becomes ${abc}${abc} hello ${def}
 * $${a} x $${b} y $${c} becomes ${a}${a} x ${b}${a} x $${b} y ${c}
 * $${a} x $${b} y $${c} z $${d} becomes ${a}${a} x ${b}${a} x $${b} y ${c}${a} x $${b} y $${c} z ${d}

Note that the last one nicely can be split up as such:
 # ${a} 
 # ${a} x ${b}
 # ${a} x $${b} y ${c}
 # ${a} x $${b} y $${c} z ${d}

So presumably it is something like regex match first vs regex match all.

> Attribute value duplicated when using more than one escaped variable
> --------------------------------------------------------------------
>
>                 Key: NIFI-7383
>                 URL: https://issues.apache.org/jira/browse/NIFI-7383
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.11.3
>            Reporter: Dirk Daems
>            Priority: Major
>
> After upgrading to version 1.11.3, it looks like attribute values are duplicated when using more than one escaped variable. E.g. in the GenerateFlowFile processor, we have a property with value /path/to/$${var1}$${var2}/$${var3}. When the flowfile is generated, the actual value of the attribute is:
> /path/to/${var1}/path/to/${var1}${var2}/path/to/${var1}$${var2}/${var3}
> while we would expect:
> /path/to/${var1}${var2}/${var3}, like in the version we had installed before (1.9.2)



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