Bug 164875

Summary: Incorrect decompression of gzip-encoded data served by lighttpd
Product: [Unmaintained] kio Reporter: Chase Venters <chase.venters>
Component: httpAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED INTENTIONAL    
Severity: normal CC: adawit
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: CentOS NZB, as downloaded via Firefox 2.0.0.13
CentOS NZB, as downloaded via Konqueror 3.5.9
Packet capture for Firefox requesting CentOS NZB
Packet capture for Konqueror requesting CentOS NZB

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...