You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by "Peter De Maeyer (Jira)" <ji...@apache.org> on 2020/01/30 07:58:00 UTC

[jira] [Created] (SANTUARIO-523) XMLSecurityStreamReader ignores information in XML document declaration

Peter De Maeyer created SANTUARIO-523:
-----------------------------------------

             Summary: XMLSecurityStreamReader ignores information in XML document declaration
                 Key: SANTUARIO-523
                 URL: https://issues.apache.org/jira/browse/SANTUARIO-523
             Project: Santuario
          Issue Type: Bug
          Components: Java
    Affects Versions: Java 2.1.4
            Reporter: Peter De Maeyer
            Assignee: Colm O hEigeartaigh


{{XMLSecurityStreamReader}} ignores information such as version, character encoding scheme and standalone-ness in the XML document declaration.
The implementation always returns {{null}}/{{false}}, indicating the defaults version "1.0", character encoding scheme "UTF-8", even if the XML document specifies something else.

The following example will have the wrong version, encoding and standalone-ness:
{code:xml}
<?xml version='1.1' encoding='ISO-8859-1' standalone='yes'?>
</Document>
{code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)