[
https://issues.apache.org/jira/browse/NIFI-5014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pierre Villard resolved NIFI-5014.
----------------------------------
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.
> JoltTransformJson fails when attribute includes newline or quotation marks
> --------------------------------------------------------------------------
>
> Key: NIFI-5014
> URL: https://issues.apache.org/jira/browse/NIFI-5014
> Project: Apache NiFi
> Issue Type: Bug
> Components: Extensions
> Affects Versions: 1.5.0
> Reporter: Nimrod Avni
> Priority: Major
> Attachments: flowfile.PNG, jolt.PNG, jsonexception.PNG
>
>
> While Trying to pass a json object through a JoltTransformJson processor to
> transform its content. adding one of the flowfiles attributes as part of the
> content, but it fails and throws jsonUnmarshalException, i managed to figure
> out the problem was the quotation marks, what i did was set the value of the
> content part of the jolt to "${comment:replace('\"','\'')}" to remove the
> quotation marks, but about a day after iv'e discovered the same problem with
> newline(\n)
> it would be great if the jolttransformjson would have an option to
> automatically escape those characters and more that might be troublesome
--
This message was sent by Atlassian Jira
(v8.20.10#820010)