[Mono-bugs] [Bug 371581] [Regression] HttpContext.RewritePath no longer works

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Aug 30 17:35:13 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#c20


Philippe Leybaert <philippe at activa.be> changed:

           What    |Removed                                         |Added
----------------------------------------------------------------------------
                 CC|                                                |philippe at activa.be




--- Comment #20 from Philippe Leybaert <philippe at activa.be>  2008-08-30 15:35:12 MDT ---
It seems that when your application is in a virtual folder, and you use
RewritePath(), subsequent calls to the some properties of HttpRequest return
the wrong result.

For example:

Application virtual path = /demo/
Original URL: http://localhost/demo/testcase1.aspx


1. HttpContext.FilePath returns:
    "/demo/testcase1.aspx" (ok)

2. HttpContext.AppRelativeCurrentExecutionFilePath returns:
    "~/testcase1.aspx" (ok)

3. Then call HttpContext.RewritePath("http://localhost/demo/testcase2.aspx")

4. HttpContext.FilePath returns:
    "/demo/demo/testcase2.aspx" (should be "/demo/testcase2.aspx")

5. HttpContext.AppRelativeCurrentExecutionFilePath returns:
    "~/demo/testcase2.aspx" (should be "~/testcase2.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