[Mono-bugs] [Bug 61654][Wis] New - Incorrect Request.ApplicationPath in ASP.NET root

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Fri, 16 Jul 2004 01:24:23 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by jhill@arcfocus.com.

http://bugzilla.ximian.com/show_bug.cgi?id=61654

--- shadow/61654	2004-07-16 01:24:23.000000000 -0400
+++ shadow/61654.tmp.30487	2004-07-16 01:24:23.000000000 -0400
@@ -0,0 +1,58 @@
+Bug#: 61654
+Product: Mono: Class Libraries
+Version: unspecified
+OS: All
+OS Details: FC1 / FC2 / WinXP
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: jhill@arcfocus.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Incorrect Request.ApplicationPath in ASP.NET root
+
+Description of Problem:
+Request.ApplicationPath, as well as tilde (~), interprets incorrectly when
+referenced in the root application.  When referenced from applications
+other than the root, they interpret correctly.
+
+Steps to reproduce the problem:
+1. Create an aspx file such as this Test.aspx:
+<%@ Page Language="C#" %>
+<html>
+<body>
+<a href='<% Response.Write(Request.ApplicationPath); %>/Test.aspx'>Link1</a>
+<a href="~/Test.aspx" runat="server">Link2</a>
+</body>
+</html>
+
+2. View the page in xsp or mod_mono, where the page exists in the root
+application:
+ 
+mono /usr/bin/xsp.exe --root . --port 8080 --applications /:.
+ 
+3.  Check the target paths of the two links that appear on the page.
+
+Actual Results:
+Link1 and Link2 will be missing the ApplicationPath from the URL.
+(For example, "http://Test.aspx")
+
+Expected Results:
+Link1 and Link2 should have the ApplicationPath in the URL.
+(For example, "http://localhost:8080/Test.aspx")
+
+How often does this happen? 
+Always
+
+Additional Information:
+Viewing the page in xsp or mod_mono where the page exists in an application
+other than root (such as a subdirectory named "exdir"):
+mono /usr/bin/xsp.exe --root . --port 8080 --applications /exdir:./exdir
+
+Will produce both links with the correct URL (in this case,
+"http://localhost:8080/exdir/Test.aspx")