[ https://issues.apache.org/jira/browse/NIFI-11738?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Matthew Clarke updated NIFI-11738: ---------------------------------- Affects Version/s: 1.18.0 > Unexpected NiFi Expression Language (NEL) behavior > -------------------------------------------------- > > Key: NIFI-11738 > URL: https://issues.apache.org/jira/browse/NIFI-11738 > Project: Apache NiFi > Issue Type: Bug > Components: Core Framework > Affects Versions: 1.18.0, 1.19.0, 1.20.0, 1.21.0 > Reporter: Matthew Clarke > Priority: Major > > When working with properties that support NiFi Expression Language (NEL) > containing a combination of valid NEL and escaped NEL, inconsistent > evaluation occurs. > Examples: > 1. NEL *{"$${key}":"value"}* resolves to *{"${key}":"value"}* <-- expected > 2. NEL *{"$${key}":"${literal('value')}"}* resolves to > *{"$${key}":"value"}* <-- unexpected (failed to evaluate escaped NEL and > treated as a literal) > 3. NEL *{"${literal('value')}":"$${key}"}* resolves to *{"value":"${key}"}* > <-- expected > 4. NEL *{"${literal('first')}":"$${key}":"${literal('value')}"}* resolves to > *{"first":"${key}":"value"}* <-- expected (When escaped NEL was preceded by > non-escaped NEL, both the Escaped and non-escaped NEL were evaluated > correctly) > 5. NEL *{${literal('')}"$${key}":"${literal('value')}"}* resolves to > *{"${key}":"value"}* <--expected > 6. NEL *{"${literal('$${key}')"}:"${literal('value')}"}* resolves to > *{"${literal('${key}')"}:"${literal('value')}"}* <-- unexpected (here it > resolved the escaped NEL inside a valid NEL; however, then treated both valid > NEL as literals.) -- This message was sent by Atlassian Jira (v8.20.10#820010)