You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Nissim Shiman (Jira)" <ji...@apache.org> on 2022/11/21 19:14:00 UTC

[jira] [Updated] (NIFI-10853) UpdateAttribute - expression language syntax error not caught until processor runtime

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

Nissim Shiman updated NIFI-10853:
---------------------------------
    Description: 
The UpdateAttribute will not show any alerts when the following expression language value is used for a property value:
{code:java}
${filename:equals('testFile'}
{code}

This is also true when using the 'Verify Properties' button. (A green arrow is returned saying "Component Validation Passed").

The processor will start, but when a flowfile passed through on runtime, though, it will fail
with error
{code}
org.apache.nifi.attribute.expression.language.exception.AttributeExpressionLanguageException: Invalid Expression: ${filename:equals('testFile'} due to Unexpected token '}' at line 1, column 28. Query: ${filename:equals(testFile}
{code}

(This is not the case with RouteOnAttribute, which will leave the processor in an invalid state, flagging this as an alert, until the expression is corrected.)

  was:
The UpdateAttribute will not show any alerts when the following expression language value is used for a property value:
{code:java}
${filename:equals('testFile'}
{code}

This is also true when using the 'Verify Properties' button. (A green arrow is returned saying "Component Validation Passed").

The processor will start, but when a flowfile passed through on runtime, though, it will fail
with error
{code}
org.apache.nifi.attribute.expression.language.exception.AttributeExpressionLanguageException: Invalid Expression: ${filename:equals('testFile'} due to Unexpected token '}' at line 1, column 28. Query: ${filename:equals(testFile}
{code}


> UpdateAttribute - expression language syntax error not caught until processor runtime
> -------------------------------------------------------------------------------------
>
>                 Key: NIFI-10853
>                 URL: https://issues.apache.org/jira/browse/NIFI-10853
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Nissim Shiman
>            Priority: Major
>
> The UpdateAttribute will not show any alerts when the following expression language value is used for a property value:
> {code:java}
> ${filename:equals('testFile'}
> {code}
> This is also true when using the 'Verify Properties' button. (A green arrow is returned saying "Component Validation Passed").
> The processor will start, but when a flowfile passed through on runtime, though, it will fail
> with error
> {code}
> org.apache.nifi.attribute.expression.language.exception.AttributeExpressionLanguageException: Invalid Expression: ${filename:equals('testFile'} due to Unexpected token '}' at line 1, column 28. Query: ${filename:equals(testFile}
> {code}
> (This is not the case with RouteOnAttribute, which will leave the processor in an invalid state, flagging this as an alert, until the expression is corrected.)



--
This message was sent by Atlassian Jira
(v8.20.10#820010)