[Mono-bugs] [Bug 75550][Min] New - Server.Transfer incorrectly changes relative paths

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Jul 14 23:12:49 EDT 2005


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 ximiantracking at netsyncro.com.

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

--- shadow/75550	2005-07-14 23:12:47.000000000 -0400
+++ shadow/75550.tmp.21240	2005-07-14 23:12:47.000000000 -0400
@@ -0,0 +1,60 @@
+Bug#: 75550
+Product: Mono: Tools
+Version: 1.0
+OS: SLES 9
+OS Details: mod_mono-1.0.9-0.sles9.novell
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Minor
+Component: mod_mono
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: ximiantracking at netsyncro.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Server.Transfer incorrectly changes relative paths
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+Example:
+You have two files in directory test
+one.aspx
+ONE.aspx.  
+and another sub-directory in test called Inc with a ControlHeader.ascx file.
+
+ONE.aspx only has a Server.Transfer in it to page one.aspx.  one.aspx has a
+register tag references a user control :
+<%@ Register TagPrefix="Whatever" TagName="Header"
+Src="Inc/ControlHeader.ascx" %>
+
+I've also tried using a ~ (tilde) so the path is relative with no success.
+
+When accessing localhost/test/one.aspx All works fine.  When you access
+localhost/test/ONE.aspx I get a parse error that it can't find the
+ControlHeader.ascx file.  Showing the path starting at the root.
+
+Steps to reproduce the problem:
+1. create sub directory test
+2. in test create another sub direcotry Inc
+3. create two files in test called one.aspx and ONE.aspx
+4. in Inc create one ControlHeader.ascx file
+5. ONE.aspx should only contain a Server.Transfer to one.aspx
+6. one.aspx should have <%@ Register TagPrefix="Whatever" TagName="Header"
+Src="Inc/ControlHeader.ascx" %>
+7. Aceess ONE.aspx page
+
+Actual Results:
+parse error looking for ControlHeader.ascx not relative to orginal path of
+one.aspx
+
+Expected Results:
+Server.Transfer should pass path information relative to executing directory
+
+How often does this happen? 
+Every time
+
+Additional Information:
+Point me in the right direction and I'll start submitting patches..


More information about the mono-bugs mailing list