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

ParseSax convertStreamToStringAndParse creates a String from bytes without specifying a charset

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.1.2
    • 2.2.0, 2.1.3
    • jclouds-core
    • 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

              gaul Andrew Gaul
              roded roded
              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