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

ParseSax convertStreamToStringAndParse creates a String from bytes without specifying a charset

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          Activity

            People

            • Assignee:
              gaul Andrew Gaul
              Reporter:
              roded roded

              Dates

              • Created:
                Updated:
                Resolved:

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0h
              0h
              Logged:
              Time Spent - 50m
              50m

                Issue deployment