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

PutElasticsearchHttpRecord uses system default encoding

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.0
    • Fix Version/s: 1.9.0
    • Component/s: Extensions
    • Labels:
      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

              • Assignee:
                alex_savitsky Alex Savitsky
                Reporter:
                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