[Mono-bugs] [Bug 48072][Nor] New - Wrong handling of the missing encoding in Content-Type: HTTP responce field

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Mon, 1 Sep 2003 08:18:24 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by gkodinov@openlinksw.co.uk.

http://bugzilla.ximian.com/show_bug.cgi?id=48072

--- shadow/48072	2003-09-01 08:18:24.000000000 -0400
+++ shadow/48072.tmp.29005	2003-09-01 08:18:24.000000000 -0400
@@ -0,0 +1,48 @@
+Bug#: 48072
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: Redhat 9/x86
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: gkodinov@openlinksw.co.uk               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Wrong handling of the missing encoding in Content-Type: HTTP responce field
+
+If some SOAP server (see bug #48071 for such) returns 
+Content-Type: text/xml
+
+in it's HTTP reply the code for extracting the encoding from there throws
+exception :
+Unhandled Exception: System.ArgumentOutOfRangeException: Argument is out of
+range
+in <0x0004c> 00 System.String:Substring (int,int)
+in <0x0006c> 00
+System.Web.Services.Protocols.WebServiceHelper:GetContentEncoding (string)
+in <0x00142> 00
+System.Web.Services.Protocols.SoapHttpClientProtocol:ReceiveResponse
+(System.Net.WebResponse,System.Web.Services.Protocols.SoapClientMessage,System.Web.Services.Protocols.SoapExtension[])
+in <0x0007d> 08
+System.Web.Services.Protocols.SoapHttpClientProtocol:ReceiveResponse
+(System.Net.WebResponse,System.Web.Services.Protocols.SoapClientMessage,System.Web.Services.Protocols.SoapExtension[])
+in <0x00207> 00 System.Web.Services.Protocols.SoapHttpClientProtocol:Invoke
+(string,object[])
+in <0x0006b> 08 System.Web.Services.Protocols.SoapHttpClientProtocol:Invoke
+(string,object[])
+in <0x00105> 00 redcoalsms.net.redcoal.xml.ISOAPServerservice:SendTextSMS
+(string,string,string,string,string,string,int,string&)
+in <0x000da> 08 redcoalsms.net.redcoal.xml.ISOAPServerservice:SendTextSMS
+(string,string,string,string,string,string,int,string&)
+in <0x00049> 00 redcoalsms.redcoalsmssvc:SendSms (string,string)
+in <0x00057> 00 .testit:Main (string[])
+
+
+
+Please find attached a diff, that causes it to work.