[
https://issues.apache.org/jira/browse/NIFI-14164?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17913786#comment-17913786
]
ASF subversion and git services commented on NIFI-14164:
--------------------------------------------------------
Commit 08a7e01b8cc40c31a2bed468e7e478edb830e7c1 in nifi's branch
refs/heads/main from Mark Payne
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=08a7e01b8c ]
NIFI-14164: Ensure that when a PropertyDescriptor indicates that Expression
Language is evaluated, that it evaluates EL even if not the property value does
not reference EL.
Signed-off-by: Pierre Villard <[email protected]>
This closes #9638.
> Mock Framework's MockPropertyValue only ensures
> evaluateAttributeExpressions() called if Expression Language present
> --------------------------------------------------------------------------------------------------------------------
>
> Key: NIFI-14164
> URL: https://issues.apache.org/jira/browse/NIFI-14164
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Reporter: Mark Payne
> Assignee: Mark Payne
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> In the MockPropertyValue, we ensure that if a PropertyDescriptor declares a
> property to support Expression Language, that
> {{evaluateAttributeExpressions()}} is called before calling
> {{{}getValue(){}}}. But we only ensure this if the property value is set to
> use Expression Language. Rather, if the developer declares that Expression
> Language is supported and fails to evaluate Expression Language, we should
> always throw an Exception regardless of whether or not the property is
> configured to reference EL.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)