[Mono-bugs] [Bug 82392][Nor] New - enableSessionState ReadOnly ignored
bugzilla-daemon at bugzilla.ximian.com
bugzilla-daemon at bugzilla.ximian.com
Thu Aug 9 17:28:50 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 joelwreed at gmail.com.
http://bugzilla.ximian.com/show_bug.cgi?id=82392
--- shadow/82392 2007-08-09 17:28:50.000000000 -0400
+++ shadow/82392.tmp.29406 2007-08-09 17:28:50.000000000 -0400
@@ -0,0 +1,42 @@
+Bug#: 82392
+Product: Mono: Class Libraries
+Version: 1.0
+OS:
+OS Details:
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mhabersack at novell.com
+ReportedBy: joelwreed at gmail.com
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: enableSessionState ReadOnly ignored
+
+Given a web.config with:
+
+ <pages enableSessionState="ReadOnly" ...
+
+And a web page with:
+
+ <%@ Page Language="C#" %>
+ <% Response.Write("IsReadOnly = " + Session.IsReadOnly.ToString()); %>
+
+The Response.Write will report back "false". There are two bugs
+in System.Web.UI/PageParser.cs that prevents this from working.
+
+First, we must properly propagate the page config setting to the page
+parser (see hunk 2 of attached diff).
+
+Second, when we check the EnableSessionState page directive we
+must not mess with the page config settings if no such page
+directive was provided (see hunk 3).
+
+Hunk 3 looks big but the important change is just the line:
+
+ if (atts.ContainsKey("EnableSessionState")) {
+
+jr
More information about the mono-bugs
mailing list