XML validation failing in regex
-------------------------------
Key: XMLBEANS-443
URL: https://issues.apache.org/jira/browse/XMLBEANS-443
Project: XMLBeans
Issue Type: Bug
Components: Validator
Affects Versions: Version 2.1
Environment: OS - SunOS rds061d002 5.10 Generic_118833-36 sun4v sparc
SUNW,Sun-Fire-T200
Java - 1.5.0_04
Weblogic - 9.1
XmlBeans - 2.1.0-r330131
Reporter: Vaibhav Bhandari
Fix For: TBD
We have our code deployed on 3 production servers. This issue described below
occurs only on one of the servers.
Validation of XML fails on one of the production servers and the Error Listener
points the problem to the element ptp saying -
"Validation error: /wls_domains/gtcjbb001/validRds2.xml:0: error:
cvc-datatype-valid.1.1: string value '/shelf=28/slot=8/port=28' does not match
pattern for type of ptp element in limsData_T in namespace
urn:com.bt.tdinfra.qt200tests.broadband"
Follwing is the declaration of ptp element in xsd.
<xs:element name="ptp" nillable="false">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:pattern
value="/shelf=[0-9A-Za-z]+/slot=[0-9A-Za-z]+/port=[0-9A-Za-z]+"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
As per the xsd the XML looks fine. On further analysis it was found that the
XML is marked invalid only when "slot" equals any number containing the digit
"8". Rest all of the times on this server the XML is marked valid by XML Beans.
Please let us know the fix/workaround to this problem.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]