IBM Support

IT25382: XML VALIDATION INCORRECTLY ACCETPS AN EMPTY XS:DOUBLE TYPE AS VALID

Subscribe to this APAR

By subscribing, you receive periodic emails alerting you to the status of the APAR, along with a link to the fix after it becomes available. You can track this item individually or track all items by product.

Notify me when this APAR changes.

Notify me when an APAR for this component changes.

 

APAR status

  • Closed as program error.

Error description

  • When validating an XML document using an XSD schema, an empty
    element of type xs:double validates successfully when it should
    fail to validate. This incorrect behaviour can be seen using the
    following schema:
    
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.example.org/test"
    xmlns:tns="http://www.example.org/test"
    elementFormDefault="qualified">
    <xs:element name="Document">
    <xs:complexType>
    <xs:sequence>
    <xs:element name="intElement" type="xs:int" minOccurs="0" />
    <xs:element name="doubleElement" type="xs:float" minOccurs="0"
    />
    <xs:element name="decimalElement" type="xs:decimal"
    minOccurs="0" />
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    
    The following document is processed correctly and fails to
    validate:
    
    <?xml version="1.0" encoding="UTF-8"?>
    <Document xsi:schemaLocation="http://www.example.org/test
    test.xsd"
    xmlns="http://www.example.org/test"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <decimalElement />
    </Document>
    
    However the following document is processed incorrectly and
    fails to validate:
    
    <?xml version="1.0" encoding="UTF-8"?>
    <Document xsi:schemaLocation="http://www.example.org/test
    test.xsd"
    xmlns="http://www.example.org/test"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <doubleElement />
    </Document>
    

Local fix

  • The xs:float type does not suffer from this issue, hence if the
    lower precision of an xs:float is acceptable over an xs:double
    then this can be used as a workaround. Otherwise no local fix is
     available.
    

Problem summary

  • ****************************************************************
    USERS AFFECTED:
    All users of IBM Integration Bus v10 and IBM App Connect
    Enterprise v11
    
    
    Platforms affected:
    z/OS, MultiPlatform
    
    ****************************************************************
    PROBLEM DESCRIPTION:
    The XMLNSC parser will incorrectly validate an empty XML element
    of type xs:double as being a valid value.
    

Problem conclusion

Temporary fix

Comments

APAR Information

  • APAR number

    IT25382

  • Reported component name

    INTEGRATION BUS

  • Reported component ID

    5724J0540

  • Reported release

    A00

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2018-06-22

  • Closed date

    2019-01-28

  • Last modified date

    2020-01-10

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    INTEGRATION BUS

  • Fixed component ID

    5724J0540

Applicable component levels

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSNQK6","label":"IBM Integration Bus"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"10.0","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}}]

Document Information

Modified date:
10 January 2020