You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Roded Bahat (JIRA)" <ji...@apache.org> on 2019/08/12 15:40:00 UTC

[jira] [Created] (JCLOUDS-1510) ParseSax convertStreamToStringAndParse creates a String from bytes without specifying a charset

Roded Bahat created JCLOUDS-1510:
------------------------------------

             Summary: ParseSax convertStreamToStringAndParse creates a String from bytes without specifying a charset
                 Key: JCLOUDS-1510
                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1510
             Project: jclouds
          Issue Type: Bug
            Reporter: Roded Bahat


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), it can have nondeterministic behavior in some cases since the AWS response contains some random data.

PR is in the works.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)