mail-archives/mono-bugs/2009-February/085442.html

131 строка
4.8 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 471776] New: Routing pattern matching for excluding web resources doesn't match.
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20471776%5D%20New%3A%20Routing%20pattern%20matching%20for%0A%20excluding%20web%20resources%20doesn%27t%20match.&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="085441.html">
<LINK REL="Next" HREF="085654.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 471776] New: Routing pattern matching for excluding web resources doesn't match.</H1>
<B>bugzilla_noreply at novell.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20471776%5D%20New%3A%20Routing%20pattern%20matching%20for%0A%20excluding%20web%20resources%20doesn%27t%20match.&In-Reply-To="
TITLE="[Mono-bugs] [Bug 471776] New: Routing pattern matching for excluding web resources doesn't match.">bugzilla_noreply at novell.com
</A><BR>
<I>Mon Feb 2 19:13:47 EST 2009</I>
<P><UL>
<LI>Previous message: <A HREF="085441.html">[Mono-bugs] [Bug 379602] Top of PowerTop ...
</A></li>
<LI>Next message: <A HREF="085654.html">[Mono-bugs] [Bug 471776] Routing pattern matching for excluding web resources doesn't match.
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#85442">[ date ]</a>
<a href="thread.html#85442">[ thread ]</a>
<a href="subject.html#85442">[ subject ]</a>
<a href="author.html#85442">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE><A HREF="https://bugzilla.novell.com/show_bug.cgi?id=471776">https://bugzilla.novell.com/show_bug.cgi?id=471776</A>
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: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mhabersack at novell.com</A>
ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">stuart at cbtnuggets.com</A>
QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
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
Routing:
routes.Add(new Route(&quot;{resource}.axd/{*pathInfo}&quot;, new StopRoutingHandler()));
Reproducible: Always
Steps to Reproduce:
1. Add the following route:
routes.Add(new Route(&quot;{resource}.axd/{*pathInfo}&quot;, new StopRoutingHandler()));
2. Try to access a WebResource.axd file.
<A HREF="http://localhost:8080/WebResource.axd?d=bb294dd4b6d68974d125c4baa9868785&amp;t=633671212470000000">http://localhost:8080/WebResource.axd?d=bb294dd4b6d68974d125c4baa9868785&amp;t=633671212470000000</A>
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
routing.
The work around seems to be changing the pattern to remove the '/':
routes.Add(new Route(&quot;{resource}.axd{*pathInfo}&quot;, new StopRoutingHandler()));
--
Configure bugmail: <A HREF="https://bugzilla.novell.com/userprefs.cgi?tab=email">https://bugzilla.novell.com/userprefs.cgi?tab=email</A>
------- You are receiving this mail because: -------
You are the QA contact for the bug.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="085441.html">[Mono-bugs] [Bug 379602] Top of PowerTop ...
</A></li>
<LI>Next message: <A HREF="085654.html">[Mono-bugs] [Bug 471776] Routing pattern matching for excluding web resources doesn't match.
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#85442">[ date ]</a>
<a href="thread.html#85442">[ thread ]</a>
<a href="subject.html#85442">[ subject ]</a>
<a href="author.html#85442">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
mailing list</a><br>
</body></html>