DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18034>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18034

Incorrect validation of dateTime strings

           Summary: Incorrect validation of dateTime strings
           Product: Xerces2-J
           Version: 2.3.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Major
          Priority: Other
         Component: XML Schema datatypes
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


The following string given as a dateTime value will pass validation tests:

2003-03-12T08:58:58:28Z

According to http://www.w3.org/TR/2001/REC-xmlschema-2-20010502/#dateTime, that
is not a valid dateTime value.

org.apache.xerces.impl.dv.xs.AbstractDateTimeDV.getTime() fails to test the
character following the seconds values for one of ".Z+-".  The comments also
indicate that value following the "." is going to be in milliseconds, which is
also an incorrect assumption.

Just to rub it in, XMLSpy caught this in a file that passed Xerces2-J validation.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to