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 [EMAIL PROTECTED] http://bugzilla.ximian.com/show_bug.cgi?id=82687 --- shadow/82687 2007-09-04 05:25:37.000000000 -0400 +++ shadow/82687.tmp.12216 2007-09-04 05:25:37.000000000 -0400 @@ -0,0 +1,215 @@ +Bug#: 82687 +Product: Mono: Class Libraries +Version: 1.2 +OS: GNU/Linux [Other] +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Minor +Component: Sys.Web +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: Not all asp attributes are case-insensitive + +Description of Problem: +Attributes names of asp server element are case-sensitive when it's name +has more then 1 hipen like 'headerstyle-font-names'. + +Steps to reproduce the problem: +$ echo "<asp:datagrid runat=server HeaderStyle-font- +names=tahoma></asp:datagrid>" > a.aspx +$ echo "<asp:datagrid runat=server headerstyle-font- +names=tahoma></asp:datagrid>" > b.aspx +$ xsp +xsp +Listening on port: 8080 (non-secure) +Listening on address: 0.0.0.0 +Root directory: /dev/shm +Hit Return to stop the server. + + +Actual Results: +$ curl localhost:8080/a.aspx + +$ curl localhost:8080/b.aspx +<?xml version="1.0" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 +Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1- +transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" +lang="en"><head><title>Compilation Error</title><style +type="text/css">body {font-family:"Verdana","DejaVu Sans",sans-serif;font- +weight:normal;font-size: .7em;color:black;background-color: white} +p {font-family:"Verdana","DejaVu Sans",sans-serif;font- +weight:normal;color:black;margin-top: -5px} +b {font-family:"Verdana","DejaVu Sans",sans-serif;font- +weight:bold;color:black;margin-top: -5px} +h1 { font-family:"Verdana","DejaVu Sans",sans-serif;font- +weight:normal;font-size:18pt;color:red } +h2 { font-family:"Verdana","DejaVu Sans",sans-serif;font- +weight:normal;font-size:14pt;color:maroon } +pre {font-family:"Lucida Console","DejaVu Sans Mono", monospace;font- +size: 1.2em} +div.bodyText {font-family: "Verdana","DejaVu Sans",sans-serif} +table.sampleCode {width: 100%; background-color: #ffffcc; } +.errorText {color: red; font-weight: bold} +.marker {font-weight: bold; color: black;text-decoration: none;} +.version {color: gray;} +.error {margin-bottom: 10px;} +.expandable { text-decoration:underline; font-weight:bold; color:navy; +cursor:hand; }</style></head><body><h1>Server Error in '/' +Application</h1><hr style="color: silver"/><h2><em>Compilation +Error</em></h2> +<p><strong>Description: </strong>Error compiling a resource required to +service this request. Review your source file and modify it to fix this +error. +</p> +<p><strong>Error message: </strong></p><p>/tmp/sunno-temp-aspnet- +0/575af23f/2ddaf70c.0.cs(76,13) : error CS0117: +`System.Web.UI.WebControls.DataGrid' does not contain a definition for +`headerstyle'<br/></p><p><strong>File name: +</strong> /dev/shm/b.aspx</p><p><strong>Source File: </strong>/tmp/sunno- +temp-aspnet-0/575af23f/2ddaf70c.0.cs</p><table summary="Source file" +class="sampleCode"> +<tr><td><pre>Line 1: // --------------------------------------------------- +--------------------------- +Line 2: // <autogenerated> +Line 3: // This code was generated by a tool. +Line 4: // Mono Runtime Version: 1.1.4322.2032 +Line 5: // +Line 6: // Changes to this file may cause incorrect behavior and will +be lost if +Line 7: // the code is regenerated. +Line 8: // </autogenerated> +Line 9: // ---------------------------------------------------------------- +-------------- +Line 10: +Line 11: namespace ASP { +Line 12: using System; +Line 13: using System.Collections; +Line 14: using System.Collections.Specialized; +Line 15: using System.Configuration; +Line 16: using System.Text; +Line 17: using System.Text.RegularExpressions; +Line 18: using System.Web; +Line 19: using System.Web.Caching; +Line 20: using System.Web.Security; +Line 21: using System.Web.SessionState; +Line 22: using System.Web.UI; +Line 23: using System.Web.UI.WebControls; +Line 24: using System.Web.UI.HtmlControls; +Line 25: +Line 26: +Line 27: public class b_aspx : System.Web.UI.Page, +System.Web.SessionState.IRequiresSessionState { +Line 28: +Line 29: private static bool __initialized = false; +Line 30: +Line 31: private static int __autoHandlers; +Line 32: +Line 33: protected System.Web.UI.WebControls.DataGrid _bctrl_3; +Line 34: +Line 35: public b_aspx() { +Line 36: if ((ASP.b_aspx.__initialized == false)) { +Line 37: ASP.b_aspx.__initialized = true; +Line 38: } +Line 39: } +Line 40: +Line 41: protected override int AutoHandlers { +Line 42: get { +Line 43: return ASP.b_aspx.__autoHandlers; +Line 44: } +Line 45: set { +Line 46: ASP.b_aspx.__autoHandlers = value; +Line 47: } +Line 48: } +Line 49: +Line 50: protected System.Web.HttpApplication ApplicationInstance { +Line 51: get { +Line 52: return ((System.Web.HttpApplication) +(this.Context.ApplicationInstance)); +Line 53: } +Line 54: } +Line 55: +Line 56: public override string TemplateSourceDirectory { +Line 57: get { +Line 58: if ((this.Parent != null)) { +Line 59: return this.Parent.TemplateSourceDirectory; +Line 60: } +Line 61: return "/"; +Line 62: } +Line 63: } +Line 64: +Line 65: private void __BuildControlTree(b_aspx __ctrl) { +Line 66: this.__BuildControl__bctrl_3(); +Line 67: System.Web.UI.IParserAccessor __parser = +((System.Web.UI.IParserAccessor)(__ctrl)); +Line 68: __parser.AddParsedSubObject(this._bctrl_3); +Line 69: __parser.AddParsedSubObject(new +System.Web.UI.LiteralControl("\n")); +Line 70: } +Line 71: +Line 72: private System.Web.UI.Control __BuildControl__bctrl_3() { +Line 73: System.Web.UI.WebControls.DataGrid __ctrl; +Line 74: __ctrl = new System.Web.UI.WebControls.DataGrid(); +Line 75: this._bctrl_3 = __ctrl; +<span style="color: red">Line 76: +__ctrl.headerstyle.Font.Names = new string[] { +</span>Line 77: "tahoma"}; +Line 78: return __ctrl; +Line 79: } +Line 80: +Line 81: protected override void FrameworkInitialize() { +Line 82: base.FrameworkInitialize(); +Line 83: this.TraceModeValue = System.Web.TraceMode.SortByTime; +Line 84: this.Request.ValidateInput(); +Line 85: this.__BuildControlTree(this); +Line 86: } +Line 87: +Line 88: public override int GetTypeHashCode() { +Line 89: return 1726756598; +Line 90: } +Line 91: } +Line 92: } +</pre> +</td></tr> +</table> +<![CDATA[ +System.Web.Compilation.CompilationException: Exception of type +System.Web.Compilation.CompilationException was thrown. + at System.Web.Compilation.BaseCompiler.CheckCompilerErrors +(System.CodeDom.Compiler.CompilerResults results) [0x00000] + at System.Web.Compilation.BaseCompiler.GetCompiledType () [0x00000] + at System.Web.Compilation.AspGenerator.GetCompiledType () [0x00000] + at System.Web.UI.PageParser.CompileIntoType () [0x00000] + at System.Web.UI.TemplateControlParser.GetCompiledInstance () [0x00000] + at System.Web.UI.PageParser.GetCompiledPageInstance (System.String +virtualPath, System.String inputFile, System.Web.HttpContext context) +[0x00000] + at System.Web.UI.PageHandlerFactory.GetHandler (System.Web.HttpContext +context, System.String requestType, System.String url, System.String path) +[0x00000] + at System.Web.HttpApplication.GetHandler (System.Web.HttpContext +context) [0x00000] + at System.Web.HttpApplication+<>c__CompilerGenerated1.MoveNext () +[0x00000] +]]> +<hr style="color: silver"/>9/4/2007 8:12:37 AM</body></html> +$ + +Expected Results: +$ curl localhost:8080/a.aspx + +$ curl localhost:8080/b.aspx + +$ + +How often does this happen? +always + +Additional Information: +tested on mono-1.2.4 & 1.2.5 _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
