You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Koji Kawamura (JIRA)" <ji...@apache.org> on 2018/01/29 08:10:00 UTC

[jira] [Commented] (NIFI-4798) UpdateAttribute should allow empty string values without requiring state management

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

Koji Kawamura commented on NIFI-4798:
-------------------------------------

Do you need to set empty string for an attribute to remove preexisting value? If so, would 'Delete Attribute Expression' do that?
Or if you need to set an actual empty string for an attribute, then following Expression Language would do that, and it passes the NON_EMPTY_STRING validation, as a workaround.

{code}
${literal('')}
{code} 

> UpdateAttribute should allow empty string values without requiring state management
> -----------------------------------------------------------------------------------
>
>                 Key: NIFI-4798
>                 URL: https://issues.apache.org/jira/browse/NIFI-4798
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework, Extensions
>    Affects Versions: 1.5.0
>            Reporter: Mark Bean
>            Priority: Minor
>              Labels: easyfix
>
> The conditional validation of dynamic properties in UpdateAttribute use the NON_EMPTY_STRING validator when state management is not enabled. This prevent the "Set empty string" checkbox option. The introduction of state management to this processor changed this behavior which previously allowed an empty string for an attribute value. The validator for the non-stateful case should be changed to return the original behavior.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)