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
The parser no longer accepts an empty element of type xs:double as being valid by default. --------------------------------------------------------------- The fix is targeted for delivery in the following PTFs: Version Maintenance Level v10.0 10.0.0.15 v11.0 11.0.0.3 The latest available maintenance can be obtained from: http://www-01.ibm.com/support/docview.wss?rs=849&uid=swg27006041 If the maintenance level is not yet available,information on its planned availability can be found on: http://www-1.ibm.com/support/docview.wss?rs=849&uid=swg27006308 ---------------------------------------------------------------
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":"LOB45","label":"Automation"}}]
Document Information
Modified date:
10 January 2020