You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2003/03/16 06:01:33 UTC
DO NOT REPLY [Bug 18034] New: -
Incorrect validation of dateTime strings
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: xerces-j-dev@xml.apache.org
ReportedBy: mflacy1@attbi.com
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: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org