[Mono-bugs] [Bug 471772] New: StopRoutingHandler stops processing of matching requests.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Feb 2 18:56:51 EST 2009


https://bugzilla.novell.com/show_bug.cgi?id=471772


           Summary: StopRoutingHandler stops processing of matching
                    requests.
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.2.x
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: stuart at cbtnuggets.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_6; en-us)
AppleWebKit/525.27.1 (KHTML, like Gecko) Version/3.2.1 Safari/525.27.1

I configured routing to ignore .axd resources using the StopRoutingHandler. 
When my pages send requests for WebResource.axd and ScriptResource.axd files
the StopRoutingHandler throws and exception.

Reproducible: Always

Steps to Reproduce:
1.  I define the following routing rule to ignore .axd resources:
routes.Add(new Route("{resource}.axd{*pathInfo}", new StopRoutingHandler()));

2.  I load a page which is making requests to resources or I can request a
resource directly:

http://localhost:8080/WebResource.axd?d=bb294dd4b6d68974d125c4baa9868785&t=633671212470000000

Actual Results:  
The StopRoutingHandler throws an exception which stops all processing of the
request and returns an error 500.


Expected Results:  
The StopRoutingHandler should be telling the router to not handle requests for
the given pattern.

When I look at the StopRoutingHandler code I don't see any notes or TODO items
so I am assuming the StopRoutingHandler expected something upstream to handle
the exception appropriately.

System.NotSupportedException: Operation is not supported.
  at System.Web.Routing.StopRoutingHandler.GetHttpHandler
(System.Web.Routing.RequestContext requestContext) [0x00000] in
/private/tmp/monobuild/build/BUILD/mono-2.2/mcs/class/System.Web.Routing/System.Web.Routing/StopRoutingHandler.cs:42 
  at
System.Web.Routing.StopRoutingHandler.System.Web.Routing.IRouteHandler.GetHttpHandler
(System.Web.Routing.RequestContext requestContext) [0x00000] in
/private/tmp/monobuild/build/BUILD/mono-2.2/mcs/class/System.Web.Routing/System.Web.Routing/StopRoutingHandler.cs:47 
  at System.Web.Routing.UrlRoutingModule.PostResolveRequestCache
(System.Web.HttpContextBase context) [0x00043] in
/private/tmp/monobuild/build/BUILD/mono-2.2/mcs/class/System.Web.Routing/System.Web.Routing/UrlRoutingModule.cs:111 
  at System.Web.Routing.UrlRoutingModule.PostResolveRequestCache (System.Object
o, System.EventArgs e) [0x00007] in
/private/tmp/monobuild/build/BUILD/mono-2.2/mcs/class/System.Web.Routing/System.Web.Routing/UrlRoutingModule.cs:82 
  at System.Web.HttpApplication+<RunHooks>c__Iterator1.MoveNext ()
[0x001aa] in
/private/tmp/monobuild/build/BUILD/mono-2.2/mcs/class/System.Web/System.Web/HttpApplication.cs:1021 
  at System.Web.HttpApplication+<Pipeline>c__Iterator2.MoveNext ()
[0x0062e] in
/private/tmp/monobuild/build/BUILD/mono-2.2/mcs/class/System.Web/System.Web/HttpApplication.cs:1168 
  at System.Web.HttpApplication.Tick () [0x00000] in
/private/tmp/monobuild/build/BUILD/mono-2.2/mcs/class/System.Web/System.Web/HttpApplication.cs:909

-- 
Configure bugmail: https://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