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

Pierre Villard resolved NIFI-5606.
----------------------------------
    Resolution: Feedback Received

Apache NiFi 1.x is no longer maintained and no new release is planned on the 
1.x release line. Marking as resolved as part of a cleanup operation. Please 
open a new one with an updated description if this is still relevant for NiFi 
2.x.

> UpdateRecord doesn't allow population of nested fields if input parent is null
> ------------------------------------------------------------------------------
>
>                 Key: NIFI-5606
>                 URL: https://issues.apache.org/jira/browse/NIFI-5606
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 1.7.1
>            Reporter: Joe Percivall
>            Priority: Major
>
> To reproduce, open the TestUpdateRecord.java processor and change the dynamic 
> properties in testFieldValuesInEL[1] to the following:
> {noformat}
> runner.setProperty("/name/last", "NiFi");
> runner.setProperty("/name/first", "Apache");{noformat}
>  
> Also, change person.json[2] to have no name field:
>  
> {noformat}
> {
>    "id": 485,
>    "mother": {
>        "last": "Doe",
>        "first": "Jane"
>    }
> }{noformat}
>  
> After running, the output is:
>  
> {noformat}
> [ { "id" : 485, "name" : null } ]{noformat}
>  
> Where the expected output would be:
> {noformat}
> {
>    "id": 485,
>    "name": {
>        "last": "NiFi",
>        "first": "Apache"
>    }
> }
> {noformat}
>  
> [1][https://github.com/apache/nifi/blob/4c787799ff7d971eb924df1e496da8338e6ab192/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestUpdateRecord.java#L303]
> [2] 
> [https://github.com/apache/nifi/blob/9ebf2cfaf1fdb1a28427aed5a8168004071efd12/nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/resources/TestUpdateRecord/input/person.json#L3]
>  



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

Reply via email to