[Mono-bugs] [Bug 523418] New: GZipStream used as Filter for HttpResponse produces invalid gzip
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Mon Jul 20 04:25:29 EDT 2009
http://bugzilla.novell.com/show_bug.cgi?id=523418
Summary: GZipStream used as Filter for HttpResponse produces
invalid gzip
Classification: Mono
Product: Mono: Class Libraries
Version: 2.4.x
Platform: x86
OS/Version: Linux
Status: NEW
Severity: Normal
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: s.volchkov at gmail.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Created an attachment (id=306057)
--> (http://bugzilla.novell.com/attachment.cgi?id=306057)
archive with sources and compiled binaries of primitive Web application
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.11)
Gecko/2009060215 Firefox/3.0.11 (.NET CLR 4.0.20506)
In an ASP.NET application, the following code:
Response.AppendHeader("Content-Encoding", "gzip");
Response.Filter = new GZipStream(Response.Filter, CompressionMode.Compress);
should produce a page compressed with gzip. Under Microsoft.NET (2.0 and 3.5)
this works fine, but under Mono and xsp the resulting HTML response body is
smaller and cannot be decompressed using Linux gzip.
This was tested on Mono 2.4.2
(http://anonsvn.mono-project.com/source/tags/mono-2-4-2/mono), running on
Debian Linux (lenny release).
Reproducible: Always
Steps to Reproduce:
1. Unpack attached archive, go to 'published' subfolder (which is a result of
applying Publish command in Visual Studio to source project, located in 'src'
archive subfolder).
2. Start xsp (I used the following command line: MONO_OPTIONS=--debug xsp2
--verbose)
3. Download http://127.0.0.1:8080/Default.aspx, e.g. using: wget -d
http://127.0.0.1:8080/Default.aspx
Actual Results:
Trying to determine the type of the saved file using 'file Default.aspx'
produces output:
Default.aspx: data
Trying to decompress the file using 'gunzip -c Default.aspx' produces output:
gzip: Default.aspx: not in gzip format
The saved file under Mono has a size of 253 bytes.
Expected Results:
Trying to determine the type of the saved file using 'file Default.aspx'
produces output:
Default.aspx: gzip compressed data, from FAT filesystem (MS-DOS, OS/2, NT), max
speed
Trying to decompress the file using 'gunzip -c Default.aspx' produces valid
HTML (350 bytes).
The saved file under Microsoft.NET has a size of 348 bytes.
The issue has been previously reported for Mono 2.2:
http://www.mail-archive.com/mono-list@lists.ximian.com/msg29100.html.
--
Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list