Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9801

Configuration#writeXml uses platform defaulting encoding, which may mishandle multi-byte characters.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1-win, 1.3.0, 2.1.1-beta, 3.0.0-alpha1
    • 1-win, 1.3.0, 2.1.1-beta
    • conf
    • None

    Description

      The overload of Configuration#writeXml that accepts an OutputStream does not set encoding explicitly, so it chooses the platform default encoding. Depending on the platform's default encoding, this can cause incorrect output data when encoding multi-byte characters.

      Attachments

        1. HADOOP-9801-trunk.2.patch
          5 kB
          Chris Nauroth
        2. HADOOP-9801-branch-1.2.patch
          4 kB
          Chris Nauroth
        3. HADOOP-9801-trunk.1.patch
          4 kB
          Chris Nauroth
        4. HADOOP-9801-branch-1.1.patch
          4 kB
          Chris Nauroth

        Activity

          People

            cnauroth Chris Nauroth
            cnauroth Chris Nauroth
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: