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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=75556 --- shadow/75556 2005-07-15 10:09:01.000000000 -0400 +++ shadow/75556.tmp.30005 2005-07-15 10:09:01.000000000 -0400 @@ -0,0 +1,59 @@ +Bug#: 75556 +Product: Mono: Class Libraries +Version: 1.1 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Wishlist +Component: System +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Summary: Digest Authentication error + +There seems to be a bug in System.Net.DigestSession class +I try to contact a remote web service running on IIS 6, secured with digest +authentication, via soap protocol. +The server always returns a HTTP 401 Status Unauthorized. +The same client code runs fine on .NET. + +The problem is in the http Authorization header: mono sends the quality of +protection parameter (qop) whitout double slashes +This is the trace of the http post running mono + +User-Agent: Mono Web Services Client Protocol 1.1.4322.573 +SOAPAction: "http://s.mappoint.net/mappoint-30/GetMap" +Content-Type: text/xml; charset=utf-8 +Connection: keep-alive +Authorization: Digest username="xxxxxxx", realm="MapPoint", +nonce="9c211787a79988989624331211001ee2d0ef38f6a49e2d7d0fbbd45263c5", +uri="/Render-30/RenderService.asmx", +response="f0830ee0d01443cddb478a733767d4d1", qop=auth, nc=00000001, +cnonce="UACoF0wQT7fN0K4wpUnX" +Content-Length: 941 +Expect: 100-continue +Host: renderv3.staging.mappoint.net + + +Running .NET the headers are similar but with +qop="auth" +whit double slashes + +To solve the problem i get the latest class library source code from +svn://svn.myrealbox.com/source/trunk/mcs and replaced in the +Authenticate(WebRequest webRequest, ICredentials credentials) method of +the class System.Net.DigestSession this code +auth.AppendFormat ("qop={0}, ", QOP); + +with this + +auth.AppendFormat ("qop=\"{0}\", ", QOP); + +and recompiled mono + + +Now it works fin _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
