<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>17768</bug_id>
          
          <creation_ts>2012-07-13 14:12:38 +0000</creation_ts>
          <short_desc>bzip2 encoding not recognized when content encoding field is &quot;bzip2&quot; (instead of &quot;x-bzip2&quot;)</short_desc>
          <delta_ts>2012-09-09 21:38:33 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Validator</product>
          <component>check</component>
          <version>HEAD</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>soeren</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>kai</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69933</commentid>
    <comment_count>0</comment_count>
      <attachid>1154</attachid>
    <who name="">soeren</who>
    <bug_when>2012-07-13 14:12:38 +0000</bug_when>
    <thetext>Created attachment 1154
http response to reproduce the error

I just discovered that when the Server sets the the content-encoding header field to &quot;bzip2&quot; instead of &quot;x-bzip2&quot;, 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: &quot;cat resp-incorrect | nc -l -p 8080&quot; and then point the validator to http://your.ip:8080/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69934</commentid>
    <comment_count>1</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2012-07-13 14:32:39 +0000</bug_when>
    <thetext>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&apos;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&apos;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&apos;t think this is a bug in the validator nor libwww-perl but the server or its config.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73500</commentid>
    <comment_count>2</comment_count>
    <who name="Kai Bolay">kai</who>
    <bug_when>2012-09-09 21:17:03 +0000</bug_when>
    <thetext>(In reply to comment #1)

 &gt; I suspect it&apos;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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73501</commentid>
    <comment_count>3</comment_count>
    <who name="Kai Bolay">kai</who>
    <bug_when>2012-09-09 21:38:33 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; (In reply to comment #1)
&gt; 
&gt;  &gt; I suspect it&apos;d work if the server sent x-bzip2, but I cannot verify that.
&gt; 
&gt; Does anyone have any tips on how to properly (re-)configure lighttpd?

FYI: I&apos;ve filed http://redmine.lighttpd.net/issues/2443</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1154</attachid>
            <date>2012-07-13 14:12:38 +0000</date>
            <delta_ts>2012-07-13 14:12:38 +0000</delta_ts>
            <desc>http response to reproduce the error</desc>
            <filename>resp-incorrect</filename>
            <type>application/octet-stream</type>
            <size>2081</size>
            <attacher>soeren</attacher>
            
              <data encoding="base64">SFRUUC8xLjEgMjAwIE9LDQpWYXJ5OiBBY2NlcHQtRW5jb2RpbmcNCkNvbnRlbnQtRW5jb2Rpbmc6
IGJ6aXAyDQpMYXN0LU1vZGlmaWVkOiBNb24sIDA5IEp1bCAyMDEyIDE5OjIwOjUxIEdNVA0KRVRh
ZzogIjE0NjAzNjk3ODEiDQpDb250ZW50LVR5cGU6IHRleHQvaHRtbA0KQWNjZXB0LVJhbmdlczog
Ynl0ZXMNCkNvbnRlbnQtTGVuZ3RoOiAxNzk3DQpDb25uZWN0aW9uOiBjbG9zZQ0KRGF0ZTogRnJp
LCAxMyBKdWwgMjAxMiAwOTo1MzowOCBHTVQNClNlcnZlcjogbGlnaHR0cGQvMS40LjMxDQoNCkJa
aDkxQVkmU1nfTRULAAFn34OAMnkH+3+/79/gv///8AAAhAABBGAHfYFvmedrgO3jvE0Bye7JAJJC
nkRMnpA0aGm0mQ00NNAAANAAGgTQCmIp4RAzSDQAD1AyDJpoNAMmhRT9SA0BkBpoaaAAAAAAASIh
NKn6UMh6jR6ajR6g9Q0G1DEADI0AHGTJoxDE0wEDAmmCMExNNNABhBIiIAEaUxqankymCGgNAaAN
AAaNG5RoikBJMJQ5ygRu34eT4yuQaaY2a+5q03DxT67WuAqN0KPkwuyPyMrG8+Xf5qiEziagddOz
SjteIzMxXplWGgAVpKk2c6u1EjB8FQ5ifIS9IAadpnJDrzrRwxwW0DKiFl+0dYxJ15lEEE1NMTZZ
LdJTODYGYBgxrOmIGZ60gmO2iKwRKqb3mZrPnWzB4oeB51ARoSYUPXZBYAXAyeEBSjTNJZ0CtERJ
pvh493R4aC53FwYH6Mgx2uSuBbi85ENmd6zBRBHxoSYwVuJYsAJkvf8UvS9Vc6fn291V5s3k2zTm
04ZIvolNNoxe9UUMRbSItBOiIg9mxj1L2Gs/JobtW7hM2oB5NnL7ki1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