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

ASF subversion and git services commented on NIFI-4692:
-------------------------------------------------------

Commit 1fdae088cf909a141a7093fff0726a75ef7381a5 in nifi's branch 
refs/heads/main from Gabor Gyimesi
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=1fdae08 ]

NIFI-4692 Fix AttributesToJSON property docs to match functionality

Signed-off-by: Pierre Villard <[email protected]>

This closes #5313.


> 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
>          Time Spent: 20m
>  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)

Reply via email to