You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Max Kelada (JIRA)" <ji...@apache.org> on 2018/03/24 06:21:00 UTC

[jira] [Created] (NIFI-5014) JoltTransformJson fails when attribute includes newline or quotation marks

Max Kelada created NIFI-5014:
--------------------------------

             Summary: 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: Max Kelada
         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
(v7.6.3#76005)