[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


http://bugzilla.novell.com/show_bug.cgi?id=533136


           Summary: SOAP serialization exception when remoting
                    TimeSpan.MinValue
    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:1.9.0.13)
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:

System.Runtime.Remoting.Metadata.W3cXsd2001.SoapDuration.ToString
(TimeSpan.MinValue);

Actual Results:  
System.OverflowException: This TimeSpan value is MinValue and cannot be
negated.
  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:  
"-P10675199DT2H48M5.4770000S"

(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