Uploaded image for project: 'Apache NiFi'
  1. Apache NiFi
  2. NIFI-12536

ParseDocument incorrectly converts byte array to String, result in text like b'...' instead of just ...

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.0.0-M1
    • 2.0.0-M2
    • Extensions
    • None

    Description

      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'

      Attachments

        Issue Links

          Activity

            People

              markap14 Mark Payne
              markap14 Mark Payne
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m