[Mono-bugs] [Bug 676454] New: DateTimeOffset not serializing correctly

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Mar 2 15:36:21 EST 2011


https://bugzilla.novell.com/show_bug.cgi?id=676454

https://bugzilla.novell.com/show_bug.cgi?id=676454#c0


           Summary: DateTimeOffset not serializing correctly
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: WCF
        AssignedTo: atsushi at ximian.com
        ReportedBy: david.straw at hp.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


Created an attachment (id=417183)
 --> (http://bugzilla.novell.com/attachment.cgi?id=417183)
A simple test case to reproduce the issue

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.98 Safari/534.13

The SOAP body produced from serializing a DateTimeOffset in Moonlight is not
parsable by the .NET Framework. This means that any DataContract types that use
a DateTimeOffset will cause a failure in the web service call.

Tested with Moonlight revision 5c22893 (which contains a fix that uncovered
this issue - see bug #676363). Mono revision was 32b3b31.

Reproducible: Always

Steps to Reproduce:
1. Create a DataContract type with a DateTimeOffset property
2. Attempt to send the data in a web service method
Actual Results:  
The Moonlight client receives a 404 error and the server logs a
SerializationException

Expected Results:  
The DateTimeOffset should be serialized in such a way that the server can
successfully deserialize it

SOAP produced by Silverlight:
<RevisionTime xmlns:d5p1="http://schemas.datacontract.org/2004/07/System">
  <d5p1:DateTime>2011-03-02T20:21:28.1904572Z</d5p1:DateTime>
  <d5p1:OffsetMinutes>-420</d5p1:OffsetMinutes>
</RevisionTime>

SOAP produced by Moonlight:
<RevisionTime xmlns:d6p1="http://schemas.datacontract.org/2004/07/System">
  <d6p1:dt>2000-01-01T12:30:27</d6p1:dt>
  <d6p1:utc_offset>-PT6H</d6p1:utc_offset>
</RevisionTime>

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list