[
https://issues.apache.org/jira/browse/NIFI-5094?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard resolved NIFI-5094.
----------------------------------
Resolution: Feedback Received
Apache NiFi 1.x is no longer maintained and no new release is planned on the
1.x release line. Marking as resolved as part of a cleanup operation. Please
open a new one with an updated description if this is still relevant for NiFi
2.x.
> EL Operations doesn't work for attributes having names with spaces
> ------------------------------------------------------------------
>
> Key: NIFI-5094
> URL: https://issues.apache.org/jira/browse/NIFI-5094
> Project: Apache NiFi
> Issue Type: Bug
> Components: Configuration
> Affects Versions: 1.3.0
> Environment: OS: RHEL 7.2
> Apache NiFi: 1.3.0
> Reporter: Adil
> Priority: Minor
>
> If we declare an attribute having space in between the name, the EL
> operations doesn't work the way they should work.
> Example:
> Attribute Name declared(without quotes): 'Custom Extract Query' (value is a
> SQL query like:
> {code:java}
> select colA,colB,colC from dbName.tableName'{code}
> )
> EL Operations tested:
> {code:java}
> ${${'Custom Extract Query'}:toLower:contains('select')}
> ${${'Custom Extract Query'}:toLower:isEmpty()}{code}
> If I remove the spaces from the attribute name, the above EL operations work
> properly.
> Adding more explanation:
> I tried multiple possible ways for this to work before mentioning it out as
> bug.
> Not working snippets:
> {code:java}
> ${${'Custom Extract Query'}:toLower:contains('select')}
> ${${'Custom Extract Query'}:toLower:isEmpty()}
> ${'Custom Extract Query':toLower:contains('select')}
> {${'Custom Extract Query':toLower:isEmpty()}
> {code}
>
> Working Code:
> {code:java}
> ${${'CustomExtractQuery'}:toLower:contains('select')}
> ${${'CustomExtractQuery'}:toLower:isEmpty()}
> ${CustomExtractQuery:toLower:contains('select')}
> ${CustomExtractQuery:toLower:isEmpty()}
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)