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=77052 --- shadow/77052 2005-12-21 10:13:49.000000000 -0500 +++ shadow/77052.tmp.31758 2005-12-21 10:13:49.000000000 -0500 @@ -0,0 +1,67 @@ +Bug#: 77052 +Product: Mono: Class Libraries +Version: 1.0 +OS: +OS Details: +Status: NEW +Resolution: +Severity: +Priority: Normal +Component: Sys.Web +AssignedTo: [EMAIL PROTECTED] +ReportedBy: [EMAIL PROTECTED] +QAContact: [EMAIL PROTECTED] +TargetMilestone: --- +URL: +Cc: +Summary: The last POST parameter has \r\n appended + +When the Mono libraries create the Page.Request.Params collection, it +builds the list from querystring params, then POST params and finally +server variables. When adding the POST params it appends \r\n to the +last POST variables value. This behaviour is different to that in .NET +and, of course makes it impossible to use the value in a comparison test +without first using Trim() on the value. + +The attached ZIP contains an example ASPX file and source for an +associated webcontrol. To reproduce the behaviour: + +1) Unzip the contents into a convenient directory and compile the source +using the command: + +mcs -t:library -r:System.Web -out:bin\Lyquidity.Test.WebUI.dll +indexcontent.aspx.cs + +2) run XSP from the folder: + +mono XSP --root . + +3) Review the page by pointing your browser to: + +http://localhost:8080/index.aspx + +4) Press the submit button + +What's happening? + +The control accesses the Page.Request.Params collection for each of the +four "action" params. It replaces any "\r" with "R" and any "\n" +with "N". + +Actual Results: + +Action1: one +Action2: twoRN +Action3: three +Action4: four + +Expected Results: + +Action1: one +Action2: two +Action3: three +Action4: four + +Parameter "action2" is the last "post" parameter in index.aspx and has +\r\n. Edit index.aspx to make a different parameter the last one and its +value will be displayed with "RN" appended. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
