[Mono-bugs] [Bug 58564][Nor] New - MONO Beta 1 WebException Bug Handling 401 Authorization Required.
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Sun, 16 May 2004 03:55:49 -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 davidandrewtaylor@hotmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=58564
--- shadow/58564 2004-05-16 03:55:49.000000000 -0400
+++ shadow/58564.tmp.24115 2004-05-16 03:55:49.000000000 -0400
@@ -0,0 +1,43 @@
+Bug#: 58564
+Product: Mono: Class Libraries
+Version: unspecified
+OS: Red Hat 9.0
+OS Details:
+Status: NEW
+Resolution:
+Severity: 002 Two hours
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: davidandrewtaylor@hotmail.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Summary: MONO Beta 1 WebException Bug Handling 401 Authorization Required.
+
+Description of Problem:
+MONO is not correctly handling System.Net.WebException when a 401
+Authorization Required error occurs. MONO is returning the "default"
+error not the specific error and this caused a bug in a few of my apps.
+
+Steps to reproduce the problem:
+1. Compile the test case: mcs test.cs (or csc test.cs)
+2. Run the generated EXE on both MONO Beta 1 and MS.NET
+3. Compare the difference
+
+Actual Results:
+MONO WebException.Status = WebExceptionStatus.RequestCanceled
+MONO WebException.Message = "Request error. Return code was:
+Unauthorized"
+
+Expected Results:
+MS.NET WebException.Status = WebExceptionStatus.ProtocolError
+MS.NET WebException.Message = "The request failed with HTTP status 401:
+Authorization Required."
+
+How often does this happen?
+All the time.
+
+Additional Information:
+Please compile the test case and run on MS.NET and MONO Beta 1 to see
+this bug for yourself.