You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Pierre Villard (Jira)" <ji...@apache.org> on 2021/09/18 13:14:00 UTC

[jira] [Resolved] (NIFI-4692) AttributesToJSON "Null Value" description doesn't match implementation

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

Pierre Villard resolved NIFI-4692.
----------------------------------
    Fix Version/s: 1.15.0
       Resolution: Fixed

> AttributesToJSON "Null Value" description doesn't match implementation
> ----------------------------------------------------------------------
>
>                 Key: NIFI-4692
>                 URL: https://issues.apache.org/jira/browse/NIFI-4692
>             Project: Apache NiFi
>          Issue Type: Bug
>            Reporter: Joe Percivall
>            Assignee: Gábor Gyimesi
>            Priority: Minor
>             Fix For: 1.15.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> The description for the "Null Value" property is "If true a non existing or empty attribute will be NULL in the resulting JSON. If false an empty string will be placed in the JSON". In particular, the "empty attribute" portion leads me to believe that if the attribute exists but is an empty string, the resulting JSON would be NULL (when the property is 'true').
> In actuality, the property only appears to change whether a missing attribute will be NULL or an empty string ("")[1].
> Since no one has brought it up as an issue, I assume it is working as people would like so the documentation should be adjusted to match the actual logic. Potentially adding a second property for how to treat attributes with a value of an empty string.
> [1] https://github.com/apache/nifi/blob/e62417ea6b189ad0e7522cffd68481dd5df7ffd8/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/main/java/org/apache/nifi/processors/standard/AttributesToJSON.java#L181



--
This message was sent by Atlassian Jira
(v8.3.4#803005)