Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-443

XML validation failing in regex

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Version 2.1
    • TBD
    • Validator
    • None
    • 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

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            vaibhav27 Vaibhav Bhandari
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: