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

PutElasticsearchHttpRecord uses system default encoding

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.8.0
    • 1.9.0
    • Extensions
    • None

    Description

      PutElasticsearchHttpRecord line 348:

      json.append(out.toString());
      

      This results in the conversion being done using system default encoding, possibly garbling non-ASCII characters in the output. Should use the encoding configured in the processor in the toString call.

      As a workaround, the "file.encoding" system property can be specified explicitly in the bootstrap.conf:

      java.arg.7=-Dfile.encoding=UTF-8

      Attachments

        Issue Links

          Activity

            People

              alex_savitsky Alex Savitsky
              alex_savitsky Alex Savitsky
              Votes:
              0 Vote for this issue
              Watchers:
              3 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 - 1h 40m
                  1h 40m