[Mono-bugs] [Bug 371581] [Regression] HttpContext.RewritePath no longer works
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Sat Aug 30 18:23:25 EDT 2008
https://bugzilla.novell.com/show_bug.cgi?id=371581
User philippe at activa.be added comment
https://bugzilla.novell.com/show_bug.cgi?id=371581#c21
--- Comment #21 from Philippe Leybaert <philippe at activa.be> 2008-08-30 16:23:25 MDT ---
I have verified this, and it seems the bug is caused by the following piece of
code in the source code:
File:
/source/trunk/mcs/class/System.Web/System.Web/HttpContext.cs
Lines 653-658:
///
void RewritePath (string filePath, string pathInfo, string queryString, bool
setClientFilePath)
{
if (UrlUtils.IsRooted (filePath))
filePath = UrlUtils.Combine (Request.BaseVirtualDir, UrlUtils.Canonic
(filePath).Substring (1));
else
filePath = UrlUtils.Combine (UrlUtils.GetDirectory (Request.FilePath),
filePath);
///
The test case described in comment #20 causes UrlUtils.IsRooted() to return
true, so in line 656, filePath will be set to:
UrlUtils.Combine("/demo","demo/testcase2.aspx"), which is:
"/demo/demo/testcase2.aspx"
Should I submit a specific bug report for this? Or is this the right place?
--
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