Uploaded image for project: 'jclouds'
  1. jclouds
  2. JCLOUDS-1510

ParseSax convertStreamToStringAndParse creates a String from bytes without specifying a charset

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.2
    • Fix Version/s: 2.2.0, 2.1.3
    • Component/s: jclouds-core
    • Labels:
      None

      Description

      This breaks XML validation on environment which have a non-UTF-8 compatible default JVM charset.

      Relatedly, ParseSax.validateXml (which is called by convertStreamToStringAndParse) validates the XML by searching the String for a '<' character at any location (as opposed to the first character). This can have nondeterministic behavior in some cases since the AWS response contains some random data.

      PR is in the works.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gaul Andrew Gaul
                Reporter:
                roded Roded Bahat
              • 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 - 50m
                  50m