You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Joe Witt (Jira)" <ji...@apache.org> on 2021/03/18 16:47:00 UTC
[jira] [Resolved] (NIFI-8342) SplitJson corrupting flowfile content
[ https://issues.apache.org/jira/browse/NIFI-8342?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Witt resolved NIFI-8342.
----------------------------
Fix Version/s: 1.13.2
Resolution: Fixed
> SplitJson corrupting flowfile content
> -------------------------------------
>
> Key: NIFI-8342
> URL: https://issues.apache.org/jira/browse/NIFI-8342
> Project: Apache NiFi
> Issue Type: Bug
> Affects Versions: 1.13.1
> Reporter: Dorian Bugeja
> Priority: Major
> Fix For: 1.13.2
>
> Attachments: SplitJson_corrupted_output.xml, image-2021-03-18-17-35-20-406.png
>
>
> When performing a SplitJson on an array of complex json files where the first record has a longer content/text field
> {code:java}
> [ {
> "brand_id" : null,
> "table_name" : "xx",
> "attribute" : "x",
> "category" : "x",
> "include" : null,
> "exclude" : null
> }, {
> "brand_id" : null,
> "table_name" : "x",
> "attribute" : "x",
> "category" : "x",
> "include" : null,
> "exclude" : null
> } ]{code}
> an invalid json is generated (content looks file, but subsequent EvaluationJsonPath is unable to parse the object). If first table_name value is set to x, no issue is encountered
> !image-2021-03-18-17-35-20-406.png|width=917,height=199!
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)