You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Mark Payne (Jira)" <ji...@apache.org> on 2023/12/21 15:41:00 UTC

[jira] [Created] (NIFI-12536) ParseDocument incorrectly converts byte array to String, result in text like b'...' instead of just ...

Mark Payne created NIFI-12536:
---------------------------------

             Summary: ParseDocument incorrectly converts byte array to String, result in text like b'...' instead of just ...
                 Key: NIFI-12536
                 URL: https://issues.apache.org/jira/browse/NIFI-12536
             Project: Apache NiFi
          Issue Type: Bug
          Components: Extensions
    Affects Versions: 2.0.0-M1
            Reporter: Mark Payne
            Assignee: Mark Payne
             Fix For: 2.0.0


Documents that are produced from ParseDocument use {{{}str(flowfile.getContentsAsBytes(){}}}) when it should use {{{}flowfile.getContentsAsBytes().decode('utf-8'){}}}.

This results in text such as {{One Two Three}} to be produces as {{b'One Two Three'}}



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