This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17768 - bzip2 encoding not recognized when content encoding field is "bzip2" (instead of "x-bzip2")
Summary: bzip2 encoding not recognized when content encoding field is "bzip2" (instead...
Status: RESOLVED INVALID
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: HEAD
Hardware: PC Linux
: P2 minor
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-13 14:12 UTC by soeren
Modified: 2012-09-09 21:38 UTC (History)
1 user (show)

See Also:


Attachments
http response to reproduce the error (2.03 KB, application/octet-stream)
2012-07-13 14:12 UTC, soeren
Details

Description soeren 2012-07-13 14:12:38 UTC
Created attachment 1154 [details]
http response to reproduce the error

I just discovered that when the Server sets the the content-encoding header field to "bzip2" instead of "x-bzip2", the validator fails to recognize the Format.

An example to reproduce the Problem: http://www.solderware.org/pages/index.de.html

The server software is Lighttpd Version 1.4.31, its config is not modified with respect to compression headers, so I assume that either lighttpd serves an icorrect header or the validator has a bug.

Attached is the example response (including the header). You can reproduce the problem with netcat: "cat resp-incorrect | nc -l -p 8080" and then point the validator to http://your.ip:8080/
Comment 1 Ville Skyttä 2012-07-13 14:32:39 UTC
For some reason, when the validator says it supports the x-bzip2 encoding (cannot verify on validator.w3.org but it does on my local box), the server decides to send back bzip2 which doesn't seem correct; bzip2 is not a registered content-coding value:

http://tools.ietf.org/html/rfc2616#section-3.5
http://www.iana.org/assignments/http-parameters/http-parameters.xml

I suspect it'd work if the server sent x-bzip2, but I cannot verify that. On my local box for some reason bzip2 works just fine with the validator, I guess this might be because of differences in libwww-perl versions which is the library handling the response decoding. Anyway, I don't think this is a bug in the validator nor libwww-perl but the server or its config.
Comment 2 Kai Bolay 2012-09-09 21:17:03 UTC
(In reply to comment #1)

 > I suspect it'd work if the server sent x-bzip2, but I cannot verify that.

Does anyone have any tips on how to properly (re-)configure lighttpd?
Comment 3 Kai Bolay 2012-09-09 21:38:33 UTC
(In reply to comment #2)
> (In reply to comment #1)
> 
>  > I suspect it'd work if the server sent x-bzip2, but I cannot verify that.
> 
> Does anyone have any tips on how to properly (re-)configure lighttpd?

FYI: I've filed http://redmine.lighttpd.net/issues/2443