<?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>15312</bug_id>
          
          <creation_ts>2011-12-22 10:26:18 +0000</creation_ts>
          <short_desc>lowercasing requirement for Access-Control-Request-Headers harmful</short_desc>
          <delta_ts>2012-05-03 07:01:37 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsSec</product>
          <component>CORS</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc>http://dvcs.w3.org/hg/cors/raw-file/tip/Overview.html#cross-origin-request-with-preflight-0</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Julian Reschke">julian.reschke</reporter>
          <assigned_to name="Anne">annevk</assigned_to>
          <cc>ap</cc>
    
    <cc>mike</cc>
    
    <cc>public-webappsec</cc>
          
          <qa_contact name="This bug has no owner yet - up for the taking">dave.null</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>61935</commentid>
    <comment_count>0</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2011-12-22 10:26:18 +0000</bug_when>
    <thetext>&quot;If author request headers is not empty include an Access-Control-Request-Headers header with as header field value a comma-separated list of the header field names from author request headers in lexicographical order, each converted to ASCII lowercase (even when one or more are a simple header).&quot;

The requirement to lower-case header field names is harmful; it introduces an inconsistency with other HTTP header fields (Vary, Connection) that is not needed, as header field names are supposed to compared case-insensitively anyway.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61936</commentid>
    <comment_count>1</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-12-22 10:28:51 +0000</bug_when>
    <thetext>It&apos;s not inconsistent. They are case-insensitive. We&apos;re just conservative in what we transmit as header values.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61939</commentid>
    <comment_count>2</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2011-12-22 13:30:24 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; It&apos;s not inconsistent. They are case-insensitive. We&apos;re just conservative in
&gt; what we transmit as header values.

That doesn&apos;t make sense. Lower-casing something that is case-insensitive has nothing to do with being &quot;conservative&quot;.

If all header fields worked like this, it would be good and consistent. But it&apos;s the only one, which makes it harmful as implementations need to special-case something for zero benefit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61942</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-12-22 13:54:45 +0000</bug_when>
    <thetext>This is not about the header field. This is about the header field value. And it is only one whose value is case-insensitive.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61943</commentid>
    <comment_count>4</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2011-12-22 14:02:11 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; This is not about the header field. This is about the header field value. And
&gt; it is only one whose value is case-insensitive.

I understand it&apos;s about the field value.

And, no, many header fields have case-insensitive field values (for instance, all which consists of a list of tokens).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>61954</commentid>
    <comment_count>5</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2011-12-22 20:07:16 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; This is not about the header field. This is about the header field value. And
&gt; &gt; it is only one whose value is case-insensitive.
&gt; 
&gt; I understand it&apos;s about the field value.
&gt; 
&gt; And, no, many header fields have case-insensitive field values (for instance,
&gt; all which consists of a list of tokens).

I would appreciate it if you didn&apos;t close the bug until we at least agree on terminology and facts.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62007</commentid>
    <comment_count>6</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2011-12-24 13:41:54 +0000</bug_when>
    <thetext>So if token is case-insensitive, is Method too? http://tools.ietf.org/html/rfc2616#section-5.1.1 That seems weird.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62009</commentid>
    <comment_count>7</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2011-12-24 13:48:38 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; So if token is case-insensitive, is Method too?
&gt; http://tools.ietf.org/html/rfc2616#section-5.1.1 That seems weird.

No, method names are indeed case-sensitive; good catch, it indeed depends on context (for instance, in header field *parameters*, token on the left hand side are case-insensitive, while on the right hand side they are values and treatet case-sensitively).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67246</commentid>
    <comment_count>8</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2012-05-02 17:29:33 +0000</bug_when>
    <thetext>We discussed this today at the WebApps meeting. The group agrees we should specify the value of the header in this manner.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67276</commentid>
    <comment_count>9</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2012-05-03 07:01:37 +0000</bug_when>
    <thetext>(In reply to comment #8)
&gt; We discussed this today at the WebApps meeting. The group agrees we should
&gt; specify the value of the header in this manner.

It would be helpful to either include the rational, or a pointer to the meeting minutes.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>