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

User [EMAIL PROTECTED] added comment
https://bugzilla.novell.com/show_bug.cgi?id=371581#c21





--- Comment #21 from Philippe Leybaert <[EMAIL PROTECTED]>  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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to