Bug 164875 - Incorrect decompression of gzip-encoded data served by lighttpd
Summary: Incorrect decompression of gzip-encoded data served by lighttpd
Status: RESOLVED INTENTIONAL
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: http (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-24 23:28 UTC by Chase Venters
Modified: 2010-05-04 21:47 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
CentOS NZB, as downloaded via Firefox 2.0.0.13 (225.75 KB, text/plain)
2008-06-24 23:29 UTC, Chase Venters
Details
CentOS NZB, as downloaded via Konqueror 3.5.9 (40 bytes, application/octet-stream)
2008-06-24 23:30 UTC, Chase Venters
Details
Packet capture for Firefox requesting CentOS NZB (20.51 KB, application/octet-stream)
2008-06-24 23:30 UTC, Chase Venters
Details
Packet capture for Konqueror requesting CentOS NZB (22.33 KB, application/octet-stream)
2008-06-24 23:31 UTC, Chase Venters
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chase Venters 2008-06-24 23:28:11 UTC
Version:            (using KDE 3.5.9)
Installed from:    Gentoo Packages
Compiler:          gcc (GCC) 4.2.2 (Gentoo 4.2.2 p1.0)
 
OS:                Linux

Konqueror 3.5.9 fails to download correct "NZB" files from the website http://binsearch.info/. No error messages are shown or generated, and Konqueror creates a disk file in the location expected and with the name expected. However, the file created is nothing more than a short amount of gibberish and looks nothing like the expected well-formed XML.

Mozilla Firefox 2.0.0.13 was tested to download these same files correctly. Other browsers and other Firefox versions seem to download the NZB files correctly as well.

I ran a search for "CentOS" with "Maximum age of post" set to "-- show all --" and created an NZB for "Posting barebones VMware image: CentOS 5.1 i386 [00/37] - "CentOS 5.1 i386 noX.rar.nzb" yEnc (1/1)" in both browsers. I will attach the NZB file as created by each browser.

I also made a libpcap capture for each browser to examine the HTTP session. In each case, the server (lighttpd/1.4.19) appears to send identical gzip-encoded data, regardless of which browser makes the request.
Comment 1 Chase Venters 2008-06-24 23:29:12 UTC
Created attachment 25573 [details]
CentOS NZB, as downloaded via Firefox 2.0.0.13
Comment 2 Chase Venters 2008-06-24 23:30:02 UTC
Created attachment 25574 [details]
CentOS NZB, as downloaded via Konqueror 3.5.9

This is the corrupt data that Konqueror 3.5.9 saved to disk.
Comment 3 Chase Venters 2008-06-24 23:30:31 UTC
Created attachment 25575 [details]
Packet capture for Firefox requesting CentOS NZB
Comment 4 Chase Venters 2008-06-24 23:31:18 UTC
Created attachment 25576 [details]
Packet capture for Konqueror requesting CentOS NZB

It appears from a stare-and-compare that lighttpd serves exactly the same
compressed data to both browsers.
Comment 5 Jakub Stachowski 2008-06-25 08:40:22 UTC
Seems to be working ok in trunk.
Comment 6 Chase Venters 2008-06-25 19:45:45 UTC
When you say that it is working okay in trunk, do you mean that it is working fine under KDE 4+? Are fixes still going into the 3.5 branch or has that work ceased?
Comment 7 Dawit Alemayehu 2010-05-04 21:47:51 UTC
Works in KDE 4.x and 3.5.x is now legacy...