[Mono-bugs] [Bug 371581] HttpContext.RewritePath no longer works
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Mar 18 02:16:49 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=371581
User gert.driesen at pandora.be added comment
https://bugzilla.novell.com/show_bug.cgi?id=371581#c7
--- Comment #7 from Gert Driesen <gert.driesen at pandora.be> 2008-03-18 00:16:49 MST ---
Let me summarize the behavior I'm seeing:
MS:
1) BeginRequest/EndRequest event handlers attached in Application_Start are not
executed, although the Application_Start is definitely invoked.
2) Event handlers for the same events attached in Init (not Application_Init)
are executed, and the path is rewritten just fine.
3) Rewriting the path in Application_BeginRequest works fine.
Mono:
1) BeginRequest/EndRequest event handlers attached in Application_Start are
executed, but RewritePath does not have any effect.
2) Event handlers for the same events attached in Init are also executed, but
RewritePath again does not have any effect.
3) Rewriting the path in Application_BeginRequest works fine.
Conclusion:
Mono does not match MS for 1 and 2.
To match MS:
* BeginRequest/EndRequest event handlers attached in Application_Start should
not be taken into account.
* Using RewritePath in the BeginRequest event handler (or
Application_BeginRequest) should cause the specified IHttpHandler to be served
instead.
When these two issues are fixed in Mono, then your repro should still not work.
You really need to attach your event handlers in Init, or just rewrite the path
in the Application_BeginRequest method (as I mentioned earlier).
You should avoid attaching event handlers in Application_Start:
http://www.kenegozi.com/Blog/2007/09/11/applicationstart-might-be-unsafe-use-applicationinit-instead.aspx
--
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