[Mono-bugs] [Bug 509092] 403 errors should be handled specially as well

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Wed Jun 3 05:42:25 EDT 2009


User kornelpal at gmail.com added comment

Kornél Pál <kornelpal at gmail.com> changed:

           What    |Removed                     |Added
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #2 from Kornél Pál <kornelpal at gmail.com>  2009-06-03 03:42:24 MDT ---
I've tried this using HttpForbiddenHandler and <customErrors mode="On"/> and
found that the stack trace is exposed:

Server Error in '/' Application

Description: HTTP 403. Error processing request.

Stack Trace: 

System.Web.HttpException: Forbidden
  at System.Web.HttpForbiddenHandler.ProcessRequest (System.Web.HttpContext
context) [0x00000] 
  at System.Web.HttpApplication+<Pipeline>c__Iterator2.MoveNext () [0x00000] 
  at System.Web.HttpApplication.Tick () [0x00000]  

MS ASP.NET on the other hand produces:

Server Error in '/' Application.

This type of page is not served. 

Description: The type of page you have requested is not served because it has
been explicitly forbidden.  The extension '.aspx' may be incorrect.   Please
review the URL below and make sure that it is spelled correctly. 

Requested URL: /page.aspx

Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list