mail-archives/mono-bugs/2009-March/087044.html

208 строки
6.3 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mono-bugs] [Bug 485557] New: Response.ClearHeaders reset HttpCacheability to private
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20485557%5D%20New%3A%20Response.ClearHeaders%20reset%0A%20HttpCacheability%20to%20private&In-Reply-To=">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="087043.html">
<LINK REL="Next" HREF="087295.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mono-bugs] [Bug 485557] New: Response.ClearHeaders reset HttpCacheability to private</H1>
<B>bugzilla_noreply at novell.com</B>
<A HREF="mailto:mono-bugs%40lists.ximian.com?Subject=%5BMono-bugs%5D%20%5BBug%20485557%5D%20New%3A%20Response.ClearHeaders%20reset%0A%20HttpCacheability%20to%20private&In-Reply-To="
TITLE="[Mono-bugs] [Bug 485557] New: Response.ClearHeaders reset HttpCacheability to private">bugzilla_noreply at novell.com
</A><BR>
<I>Mon Mar 16 06:40:40 EDT 2009</I>
<P><UL>
<LI>Previous message: <A HREF="087043.html">[Mono-bugs] [Bug 485536] New: If inaccessible member is found, extension methods aren't considered.
</A></li>
<LI>Next message: <A HREF="087295.html">[Mono-bugs] [Bug 485557] Response.ClearHeaders reset HttpCacheability to private
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#87044">[ date ]</a>
<a href="thread.html#87044">[ thread ]</a>
<a href="subject.html#87044">[ subject ]</a>
<a href="author.html#87044">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE><A HREF="https://bugzilla.novell.com/show_bug.cgi?id=485557">https://bugzilla.novell.com/show_bug.cgi?id=485557</A>
Summary: Response.ClearHeaders reset HttpCacheability to
private
Classification: Mono
Product: Mono: Class Libraries
Version: 2.4.x
Platform: All
OS/Version: All
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Sys.Web
AssignedTo: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mhabersack at novell.com</A>
ReportedBy: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">informatique.internet at fiducial.fr</A>
QAContact: <A HREF="http://lists.ximian.com/mailman/listinfo/mono-bugs">mono-bugs at lists.ximian.com</A>
Found By: ---
User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr-FR; rv:1.9.0.7)
Gecko/2009021906 Firefox/3.0.7
On MS.NET 1.1 if you call Response.ClearHeaders, it will reset
Response.Cache.SetCacheability to default : HttpCacheability.Private
On mono 2.4 (svn branch) it does not
IMPORTANT : Response.Clear() doesn't reset Cacheability settings only
ClearHeaders()
Reproducible: Always
Steps to Reproduce:
1. try this inline aspx
&lt;%@ Page Language=&quot;C#&quot; %&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
&quot;<A HREF="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;</A>&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt;testcache&lt;/title&gt;
&lt;script language=&quot;CS&quot; runat=&quot;server&quot;&gt;
void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
Console.WriteLine(&quot;Page_Load&quot;);
Response.Cache.SetCacheability(HttpCacheability.NoCache);
if (Request.QueryString[&quot;private&quot;]!=null) {
Console.WriteLine(&quot;Setting Private&quot;);
Response.Cache.SetCacheability(HttpCacheability.Private);
}
lbl1.Text=&quot;coucou&quot;;
if (Request.QueryString[&quot;clear&quot;]!=null) {
Response.Clear();
Response.End();
}
if (Request.QueryString[&quot;clearheaders&quot;]!=null) {
Response.ClearHeaders();
Response.End();
}
}
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt;
&lt;asp:Label id=&quot;lbl1&quot; runat=&quot;server&quot;&gt;Label&lt;/asp:Label&gt;
&lt;/form&gt;
&lt;/body&gt;
&lt;/html&gt;
2.GET &quot;<A HREF="http://localhost:8080/testcache.aspx?clearheaders=true&quot;">http://localhost:8080/testcache.aspx?clearheaders=true&quot;</A> -e
Actual Results:
Cache-Control: no-cache
Connection: close
Date: Mon, 16 Mar 2009 10:27:55 GMT
Pragma: no-cache
Server: Mono.WebServer/0.1.0.0 Unix
Content-Length: 0
Content-Type: text/html; charset=utf-8
Expires: -1
Client-Date: Mon, 16 Mar 2009 10:27:55 GMT
Client-Peer: 127.0.0.1:8080
Client-Response-Num: 1
Set-Cookie: ASPSESSION=86230015CA6C545D3E9E1BEC; path=/
X-AspNet-Version: 1.1.4322
Expected Results:
Cache-Control: private
Connection: close
Date: Mon, 16 Mar 2009 10:27:55 GMT
Server: Mono.WebServer/0.1.0.0 Unix
Content-Length: 0
Client-Date: Mon, 16 Mar 2009 10:27:55 GMT
Client-Peer: 127.0.0.1:8080
Client-Response-Num: 1
X-AspNet-Version: 1.1.4322
--
Configure bugmail: <A HREF="https://bugzilla.novell.com/userprefs.cgi?tab=email">https://bugzilla.novell.com/userprefs.cgi?tab=email</A>
------- You are receiving this mail because: -------
You are the QA contact for the bug.
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="087043.html">[Mono-bugs] [Bug 485536] New: If inaccessible member is found, extension methods aren't considered.
</A></li>
<LI>Next message: <A HREF="087295.html">[Mono-bugs] [Bug 485557] Response.ClearHeaders reset HttpCacheability to private
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#87044">[ date ]</a>
<a href="thread.html#87044">[ thread ]</a>
<a href="subject.html#87044">[ subject ]</a>
<a href="author.html#87044">[ author ]</a>
</LI>
</UL>
<hr>
<a href="http://lists.ximian.com/mailman/listinfo/mono-bugs">More information about the mono-bugs
mailing list</a><br>
</body></html>