XSDateTime does not correctly deserialise fractions of seconds
--------------------------------------------------------------
Key: XFIRE-1049
URL: http://jira.codehaus.org/browse/XFIRE-1049
Project: XFire
Issue Type: Bug
Components: Aegis Module
Affects Versions: 1.2.6
Reporter: Jonathan Gilbert
Assignee: Dan Diephouse
Attachments: datetime_aegis.patch, datetime_core.patch
Aegis is incorrectly deserialising xs:dateTime fields which have a millisecond
value with fewer than 3 characters. For example:
00:00:00.5 should be deserialised to half a second, i.e. 500 milliseconds, but
Aegis reads it as 5 milliseconds.
This means that timestamps cannot be reliably passed between systems (for
instance .NET will use the above format to send half a second). This wikipedia
comfirms that this (i.e. fraction, not millisecond count) is the correct
standard as implemented in .NET.
I have attached a testcase patch for aegis (datetime_aegis.patch) which tests
deserialising these times, and the corresponding fix in xfire-core
(datetime_core.patch).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email