[Mono-bugs] [Bug 81950][Nor] Changed - Regression: Control.TemplateSourceDirectory must never return an empty string
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Tue Jun 26 13:38:11 EDT 2007
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 juraj at hotfeet.ch.
http://bugzilla.ximian.com/show_bug.cgi?id=81950
--- shadow/81950 2007-06-26 13:15:48.000000000 -0400
+++ shadow/81950.tmp.30811 2007-06-26 13:38:11.000000000 -0400
@@ -92,6 +92,36 @@
Juraj,
The CreateTemplateSourceDirectory () method was deleted because I
implemented the TemplateSourceDirectory properly, inside the class
library (this is what MS.NET does as well).
The patch looks correct - make sure all tests (both 1.1 and 2.0) run
without problems, and do commit. Thanks!
+
+------- Additional Comments From juraj at hotfeet.ch 2007-06-26 13:38 -------
+Unfortunately it's not correct.
+
+Save the following page as /tmp/subdir/test.aspx, start xsp in /tmp
+and request http://localhost:8080/subdir/test.aspx.
+
+<html>
+<body>
+<%= ResolveUrl("~/test/blah.txt") %><br />
+<%= ResolveUrl("test/blah.txt") %><br />
+<%= TemplateSourceDirectory %>
+</body>
+</html>
+
+With my patch applied, the output is:
+/test/blah.txt
+/test/blah.txt
+/
+
+Without it's (third line empty):
+~/test/blah.txt
+test/blah.txt
+
+
+But it should be:
+/test/blah.txt
+/subdir/test/blah.txt
+/subdir
+
More information about the mono-bugs
mailing list