<?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>801</bug_id>
          
          <creation_ts>2004-06-16 11:32:08 +0000</creation_ts>
          <short_desc>Improved error message for HttpInvalidValueException</short_desc>
          <delta_ts>2007-07-19 09:13:28 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSSValidator</product>
          <component>media type</component>
          <version>CSS Validator</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Xavier Robin">xavier.robin</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          
          
          <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>2020</commentid>
    <comment_count>0</comment_count>
    <who name="Xavier Robin">xavier.robin</who>
    <bug_when>2004-06-16 11:32:08 +0000</bug_when>
    <thetext>On http://smilissimo.free.fr I have a link to the validator on the bottom of the
page (&quot;CSS2&quot;). If I click on it, I get the following error :
Validator
Error
Target: http://smilissimo.free.fr/
org.w3c.www.http.HttpInvalidValueException: Invalid content type. 

I looked at the HTTP headers with Mozilla&apos;s Live Http headers, and the
content-type of my CSS are text/css.
It sounds quite like Bug 232, but the error has no number.

If the error is on my server side, the error message needs to be improved.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2021</commentid>
    <comment_count>1</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2004-06-16 11:48:28 +0000</bug_when>
    <thetext>http://cgi.w3.org/cgi-bin/headers?url=http%3A%2F%2Fsmilissimo.free.fr

  HTTP/1.1 200 OK
  Date: Wed, 16 Jun 2004 15:45:22 GMT
  Server: Apache1.3.29 - ProXad [Jun  9 2004 15:20:12]
  X-Powered-By: PHP/4.3.4
  Connection: close
  Content-Type: text/html; charset:utf-8

The CSS Validator chokes on the &quot;charset:utf-8&quot; part which should 
be &quot;charset=utf-8&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2022</commentid>
    <comment_count>2</comment_count>
    <who name="Xavier Robin">xavier.robin</who>
    <bug_when>2004-06-16 12:04:24 +0000</bug_when>
    <thetext>Ok, sorry.
Perhaps the error message should say a little more or redirect on the link you gave.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2037</commentid>
    <comment_count>3</comment_count>
    <who name="Xavier Robin">xavier.robin</who>
    <bug_when>2004-06-20 04:09:49 +0000</bug_when>
    <thetext>The HTML validator doesn&apos;t chokes on this error and accept &quot;charset:utf-8&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2039</commentid>
    <comment_count>4</comment_count>
    <who name="Ville Skyttä">ville.skytta</who>
    <bug_when>2004-06-20 08:49:54 +0000</bug_when>
    <thetext>The markup validator does indeed &quot;accept&quot; charset:utf-8 in the sense that it
won&apos;t bail out if it is present in the Content-Type header.  But it means no
more than exactly that.

As far as the markup validator is concerned, &quot;charset:utf-8&quot; in the Content-Type
header does not mean that the character set of the document is utf-8, it just
means that there is a parameter without a value named &quot;charset:utf-8&quot; in the
header.  Technically, that is somewhat incorrect and the markup validator could
abort as well, because the colon (&quot;:&quot;) is not allowed in parameter names, ie.
&quot;tokens&quot;.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17
http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.7
http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.6
http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2

An possible fix for the CSS validator would be to print the value of the content
type it treats as invalid in the error message, or just skip it silently like
the markup validator does.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>