[Mono-bugs] [Bug 533136] New: SOAP serialization exception when remoting TimeSpan.MinValue

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Aug 20 23:30:57 EDT 2009


           Summary: SOAP serialization exception when remoting
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: 64bit
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: System
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: ravitch at nrtc.northrop.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:
Gecko/2009080315 Ubuntu/9.04 (jaunty) Firefox/3.0.13

System.Runtime.Remoting.Metadata.W3cXsd2001.SoapDuration.ToString() throws a
System.OverflowException when I try to pass TimeSpan.MinValue to a remote
method invocation.  This is because the code calls TimeSpan.Negate(), which is
supposed to throw the exception for TimeSpan.MinValue.  (So TimeSpan.Negate()
is doing the right thing - SoapDuration.ToString() is not.)

Reproducible: Always

Steps to Reproduce:
1. Run "csharp" to bring up the C# REPL
2. Enter this:


Actual Results:  
System.OverflowException: This TimeSpan value is MinValue and cannot be
  at System.TimeSpan.Negate () [0x00000] 
  at System.Runtime.Remoting.Metadata.W3cXsd2001.SoapDuration.ToString
(TimeSpan timeSpan) [0x00000] 
  at Class1.Host (System.Object& $retval) [0x00000] 
  at Mono.CSharp.Evaluator.Evaluate (System.String input, System.Object&
result, System.Boolean& result_set) [0x00000] 
  at Mono.CSharpShell.Evaluate (System.String input) [0x00000] 

Expected Results:  

(I think this is right - what really matters, though, is that it deserializes
back to TimeSpan.MinValue.)

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

More information about the mono-bugs mailing list