2009-06-04 Marek Habersack <mhabersack@novell.com>
authorMarek Habersack <grendel@twistedcode.net>
Thu, 4 Jun 2009 21:22:44 +0000 (21:22 -0000)
committerMarek Habersack <grendel@twistedcode.net>
Thu, 4 Jun 2009 21:22:44 +0000 (21:22 -0000)
* HttpException.cs:
Don't generate trace for 403. Fixes bug #509092

svn path=/trunk/mcs/; revision=135488

mcs/class/System.Web/System.Web/ChangeLog
mcs/class/System.Web/System.Web/HttpException.cs

index dc2076f1449a6ea950b253d2a4b049f4010f6ce7..0c88a0024b0a5410225bda285514c057274123f8 100644 (file)
@@ -5,6 +5,7 @@
 
        * HttpException.cs: do not show version info if custom errors are
        in effect. Fixes bug #509092
+       Don't generate trace for 403. Fixes bug #509092
 
        * HttpApplicationFactory.cs: OnFileChanged ignores the directory
        part of the file triggering the event. Fixes bug #509998
index 45221e3f1a6fa0244d11d597ab588c8215b0d545..6385ffe7cb325273c38e77e17cc1d297dcaada43 100644 (file)
@@ -322,7 +322,7 @@ table.sampleCode {{width: 100%; background-color: #ffffcc; }}
                        if (resource_name != null && resource_name.Length > 0)
                                builder.AppendFormat ("<p><strong>Requested URL: </strong>{0}</p>\r\n", resource_name);
                        
-                       if (showTrace && baseEx != null && http_code != 404) {
+                       if (showTrace && baseEx != null && http_code != 404 && http_code != 403) {
                                builder.Append ("<p><strong>Stack Trace: </strong></p>");
                                builder.Append ("<table summary=\"Stack Trace\" class=\"sampleCode\">\r\n<tr><td>");
                                WriteTextAsCode (builder, baseEx.ToString ());