[Mono-bugs] [Bug 82610][Min] New - The Content-Type values must be matched case insensitive in SoapHttpClientProtocol

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Tue Aug 28 06:41:09 EDT 2007


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 christian.schilling at mac.com.

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

--- shadow/82610	2007-08-28 06:41:09.000000000 -0400
+++ shadow/82610.tmp.10743	2007-08-28 06:41:09.000000000 -0400
@@ -0,0 +1,66 @@
+Bug#: 82610
+Product: Mono: Class Libraries
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: Sys.Web.Services
+AssignedTo: atsushi at ximian.com                            
+ReportedBy: christian.schilling at mac.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: The Content-Type values must be matched case insensitive in SoapHttpClientProtocol
+
+Description of Problem:
+
+The Web Service client implementation fails, if WebMethods are invoked from
+a web server that uses non lower-case values for the Content-Type (e.g.
+TEXT/XML or Text/Xml). The method
+System.Web.Services.Protocols:ReceiveResponse() just checks if the
+Content-Type value equals "text/xml".
+
+Code excerpt from mono-1.2.4:
+
+  string ctype;
+  Encoding encoding = WebServiceHelper.GetContentEncoding
+(response.ContentType, out ctype);
+#if NET_2_0
+  if ((!message.IsSoap12 || ctype != "application/soap+xml") && ctype !=
+"text/xml")
+#else
+  if (ctype != "text/xml")
+#endif
+
+The involved WebServiceHelper method does not change the case of the given
+response.ContentType. 
+
+According the RFCs concering HTTP/1.1, type or subtype fields must be
+matched case-insensitive.
+
+Steps to reproduce the problem:
+1. Invoke a web method on a server that deliveres non lower-case
+Content-Type values.
+
+Actual Results:
+
+An InvalidOperation-Exception is thrown.
+
+The exception comment:
+"Not supported Content-Type in the response: 'TEXT/XML; CHARSET=UTF-8'"
+
+Expected Results:
+
+The stated exception must not be thrown, when a web server with non
+upper-case Content-Type values is queried.
+
+How often does this happen? 
+
+This exception is thrown every time, when a web server with non lower-case
+Content-Type values is queried.
+
+Additional Information:


More information about the mono-bugs mailing list