Bug 110233

Summary: Content-Length denotes the length of uncompressed content though compression is used
Product: Red Hat Enterprise Linux 3 Reporter: Ville Lindfors <ville.lindfors>
Component: tuxAssignee: Ingo Molnar <mingo>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: petrides, ville.lindfors
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-12-20 20:54:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch against tux patch itself none

Description Ville Lindfors 2003-11-17 13:22:06 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5)
Gecko/20031007 Firebird/0.7

Description of problem:


Version-Release number of selected component (if applicable):
tux-2.2.4-1, kernel-2.4.9-e.25

How reproducible:
Always

Steps to Reproduce:
1. Add content
2. gzip the content
3. request content $ curl -I http://host/file.html
4. request with accept encoding curl -I -H "Accept-Encoding: gzip"
http://host/file.html
    

Actual Results:  * Without accept encoding *

$ curl -I http://host/file.html
HTTP/1.1 200 OK
Content-Type: text/html
Connection: Keep-Alive
Date: Mon, 17 Nov 2003 12:58:04 GMT
Server: TUX/2.0 (Linux)
Content-Length: 5214
ETag: "5214-dpkjacpd"
Accept-Ranges: bytes
Last-Modified: Wed, 05 Nov 2003 14:02:27 GMT

* With accept encoding *

$ curl -I -H "Accept-Encoding: gzip" http://host/file.html
HTTP/1.1 200 OK
Content-Type: text/html
Connection: Keep-Alive
Date: Mon, 17 Nov 2003 12:58:09 GMT
Content-Encoding: gzip
Server: TUX/2.0 (Linux)
Content-Length: 5214
ETag: "5214-dpkjacpd"
Accept-Ranges: bytes
Last-Modified: Wed, 05 Nov 2003 14:02:27 GMT

Gzipped content is server and content length is less than 5214 bytes,
but the header says that content length is 5214 bytes


Expected Results:  Content-length must indicate the length of
compressed data

Additional info:

Comment 1 Ville Lindfors 2004-05-14 16:07:38 UTC
Created attachment 100227 [details]
patch against tux patch itself

Fixes Content-Length problem for gzipped content

Comment 2 Ville Lindfors 2004-05-16 19:49:39 UTC
Patch is actually against latest tux patch found in RHEL 3.0 kernel
rpm. If needed I can also sen patch against latest 2.1 kernel, but it
should be quite straight forward thing to do.

Comment 4 Ingo Molnar 2004-08-21 07:03:47 UTC
ok, patch queued up for inclusion into RHEL3.

Comment 5 Ernie Petrides 2004-09-11 05:17:14 UTC
A fix for this problem has just been committed to the RHEL3 U4
patch pool this evening (in kernel version 2.4.21-20.5.EL).


Comment 6 John Flanagan 2004-12-20 20:54:48 UTC
An errata has been issued which should help the problem 
described in this bug report. This report is therefore being 
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files, 
please follow the link below. You may reopen this bug report 
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2004-550.html