[Mono-bugs] [Bug 51685][Wis] New - Bug in directory handling when searching for a template in ASP.NET
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 4 Dec 2003 06:13:08 -0500 (EST)
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 mono-bug@jerryweb.info.
http://bugzilla.ximian.com/show_bug.cgi?id=51685
--- shadow/51685 2003-12-04 06:13:08.000000000 -0500
+++ shadow/51685.tmp.8259 2003-12-04 06:13:08.000000000 -0500
@@ -0,0 +1,90 @@
+Bug#: 51685
+Product: Mono/Class Libraries
+Version: unspecified
+OS: GNU/Linux [Other]
+OS Details: Gentoo
+Status: NEW
+Resolution:
+Severity:
+Priority: Wishlist
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: mono-bug@jerryweb.info
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Bug in directory handling when searching for a template in ASP.NET
+
+Description of Problem:
+Bug in directory handling when searching for a template in ASP.NET (Mono
+0.29 + XSP 0.8 + mod_mono 0.6)
+
+Steps to reproduce the problem:
+Insert two files that follows in some of subdirectories of an application
+(NOT in the root directory) and access test1.aspx:
+
+test1.aspx
+=============================================================
+<%@ Page Language="c#" %>
+<%@ Register TagPrefix="jw" TagName="sab" Src="sab1.ascx" %>
+<jw:sab runat="server" />
+=============================================================
+
+sab1.ascx
+=============================================================
+<%@ Control Language="c#" %>
+<p>Test</p>
+=============================================================
+
+Actual Results:
+
+System.IO.FileNotFoundException: File '/var/www/test/sab1.ascx' not found.
+in <0x001c6> System.IO.StreamReader:.ctor
+(string,System.Text.Encoding,bool,int)
+in <0x0001a> System.IO.StreamReader:.ctor (string,System.Text.Encoding)
+in <0x00069> (wrapper remoting-invoke-with-check)
+System.IO.StreamReader:.ctor (string,System.Text.Encoding)
+in <0x0003e> System.Web.Compilation.AspGenerator:InitParser (string)
+in <0x00041> System.Web.Compilation.AspGenerator:GetCompiledType ()
+in <0x0003b> System.Web.UI.UserControlParser:CompileIntoType ()
+in <0x00043> System.Web.UI.UserControlParser:GetCompiledType
+(string,string,System.Web.HttpContext)
+in <0x0047a> System.Web.UI.TemplateControlParser:AddDirective
+(string,System.Collections.Hashtable)
+in <0x0016a> System.Web.Compilation.AspGenerator:TagParsed
+(System.Web.Compilation.ILocation,System.Web.Compilation.TagType,string,System.Web.Compilation.TagAttributes)
+in <0x00076> (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void_ILocation_TagType_string_TagAttributes
+(System.Web.Compilation.ILocation,System.Web.Compilation.TagType,string,System.Web.Compilation.TagAttributes)
+in <0x0003a> System.Web.Compilation.AspParser:OnTagParsed
+(System.Web.Compilation.TagType,string,System.Web.Compilation.TagAttributes)
+in <0x00225> System.Web.Compilation.AspParser:Parse ()
+in <0x00021> System.Web.Compilation.AspGenerator:DoParse ()
+in <0x00050> System.Web.Compilation.AspGenerator:GetCompiledType ()
+in <0x0003b> System.Web.UI.PageParser:CompileIntoType ()
+in <0x0001e> System.Web.UI.TemplateControlParser:GetCompiledInstance ()
+in <0x0004a> System.Web.UI.PageParser:GetCompiledPageInstance
+(string,string,System.Web.HttpContext)
+in <0x00013> System.Web.UI.PageHandlerFactory:GetHandler
+(System.Web.HttpContext,string,string,string)
+in <0x001aa> System.Web.HttpApplication:CreateHttpHandler
+(System.Web.HttpContext,string,string,string)
+in <0x0011f> .CreateHandlerState:Execute ()
+in <0x00076> .StateMachine:ExecuteState
+(System.Web.HttpApplication/IStateHandler,bool&)
+
+
+The files test1.aspx and sab1.ascx are, in particular, located in
+'/var/www/test/subdir/' directory - when '/var/www/test/' is the root
+directory of ASP.NET application concerned.
+
+Additional Information:
+If I change test1.aspx to
+=============================================================
+<%@ Page Language="c#" %>
+<%@ Register TagPrefix="jw" TagName="sab" Src="subdir/sab1.ascx" %>
+<jw:sab runat="server" />
+=============================================================
+everything works OK - but such file is not compatible neither with another
+ASP.NET implementations nor with Mono 0.28 ... ;)