[Mono-bugs] [Bug 471776] New: Routing pattern matching for excluding web resources doesn't match.

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Feb 2 19:13:47 EST 2009


           Summary: Routing pattern matching for excluding web resources
                    doesn't match.
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.2.x
          Platform: Macintosh
        OS/Version: Mac OS X 10.5
            Status: NEW
          Severity: Minor
          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 have been using the following exclusion rule from the MVC tutorial for a
while now and found that it does not work with the Mono 2.2 implementation of

routes.Add(new Route("{resource}.axd/{*pathInfo}", new StopRoutingHandler()));

Reproducible: Always

Steps to Reproduce:
1.  Add the following route:
routes.Add(new Route("{resource}.axd/{*pathInfo}", new StopRoutingHandler()));
2. Try to access a WebResource.axd file.
Actual Results:  
It doesn't match the route so the StopRoutingHandler is never used.

Expected Results:  
It should match the defined route and use the StopRoutingHandler to stop

The work around seems to be changing the pattern to remove the '/':

routes.Add(new Route("{resource}.axd{*pathInfo}", new StopRoutingHandler()));

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