Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-42404

XMLISVALID: xs:attribute without type rejects the schema

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Critical
    • Resolution: Unresolved
    • N/A
    • 13.3
    • XML Functions
    • None

    Description

      An xs:attribute with no type and no xs:simpleType child should default to xs:anySimpleType. Instead the whole schema fails to load, and the error message has nothing after the position.

      SET @s= '<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"><xs:element name="r"><xs:complexType><xs:attribute name="x"/></xs:complexType></xs:element></xs:schema>';
      SELECT XMLISVALID('<r x="1"/>', @s);

      ERROR HY000: Incorrect XML value: 'XML Schema parse error at line 1 pos 116: '

      Attachments

        Activity

          People

            holyfoot Alexey Botchkov
            alice Alice Sherepa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.