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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>15287</bug_id>
          
          <creation_ts>2007-09-26 08:51:29 -0700</creation_ts>
          <short_desc>WebKit does not support non ascii parameters defined in RFC2231</short_desc>
          <delta_ts>2010-09-17 08:11:58 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Nir Soffer">nirs</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>julian.reschke</cc>
    
    <cc>mrowe</cc>
    
    <cc>rpaplin</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>57082</commentid>
    <comment_count>0</comment_count>
    <who name="Nir Soffer">nirs</who>
    <bug_when>2007-09-26 08:51:29 -0700</bug_when>
    <thetext>WebKit based browsers do not support headers with non-ASCII parameters according to RFC 2231 &lt;http://www.ietf.org/rfc/rfc2231.txt&gt;. This format is supported by Firefox.

Related:
 - http://moinmo.in/MoinMoinBugs/Non_ASCII_attachments_names_corrupted_on_download</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57083</commentid>
    <comment_count>1</comment_count>
      <attachid>16398</attachid>
    <who name="Nir Soffer">nirs</who>
    <bug_when>2007-09-26 08:56:28 -0700</bug_when>
    <thetext>Created attachment 16398
CGI script demonstrating the problem

To reproduce:
 1. Install script
 2. Access 
 3. File &gt; Save As

Result: file name is download.py
Expected: file name should be עברית

Another way:
 1. Add link to this script in another html document, e.g. &lt;a href=&quot;cgi-bin/download.py&quot;&gt;download&lt;/a&gt;
 2. Right click the link and choose &quot;Download linked file&quot;

Result: download to file &quot;download.py&quot;
Expected: download to file &quot;עברית&quot;

Firefox give expected result in both cases.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57085</commentid>
    <comment_count>2</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-09-26 09:20:46 -0700</bug_when>
    <thetext>&lt;rdar://problem/5475999&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57086</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2007-09-26 09:23:43 -0700</bug_when>
    <thetext>The changes required to support this completely need to be implemented at a lower level than WebKit.  This work is being tracked by the associated Radar.  I&apos;m going to close this bug as INVALID as the issue is not at the WebKit level.

Thanks for the bug report.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57098</commentid>
    <comment_count>4</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2007-09-26 11:50:37 -0700</bug_when>
    <thetext>See also: rdar://4727992</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83957</commentid>
    <comment_count>5</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2008-06-20 02:34:21 -0700</bug_when>
    <thetext>It would be great if somebody could update this bug with information about how work on rdar://4727992 is progressing.

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83963</commentid>
    <comment_count>6</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-06-20 03:52:18 -0700</bug_when>
    <thetext>As it is not a WebKit bug it is not appropriate for us to publish information about it in the WebKit bug database.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88612</commentid>
    <comment_count>7</comment_count>
    <who name="Mark Rowe (bdash)">mrowe</who>
    <bug_when>2008-08-15 16:54:10 -0700</bug_when>
    <thetext>*** Bug 20407 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88619</commentid>
    <comment_count>8</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2008-08-16 02:10:39 -0700</bug_when>
    <thetext>regarding comment 1 and it&apos;s attachment...

The test case is incorrect. It uses

  filename*=&quot;utf-8&apos;en&apos;%D7%A2%D7%91%D7%A8%D7%99%D7%AA&quot;

while it should be

  filename*=utf-8&apos;en&apos;%D7%A2%D7%91%D7%A8%D7%99%D7%AA

according to the &quot;extended-initial-value&quot; production in Section 7 of RFC 2231 (&lt;http://greenbytes.de/tech/webdav/rfc2231.html#rfc.section.7&gt;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88634</commentid>
    <comment_count>9</comment_count>
      <attachid>22834</attachid>
    <who name="Nir Soffer">nirs</who>
    <bug_when>2008-08-16 12:37:43 -0700</bug_when>
    <thetext>Created attachment 22834
Fixed test case

This test case does not work with Safari 3.1.2 and Mac OS X 10.4.11, but works with Firefox 2 on same system.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88635</commentid>
    <comment_count>10</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2008-08-16 13:26:17 -0700</bug_when>
    <thetext>(In reply to comment #8)
&gt;   filename*=&quot;utf-8&apos;en&apos;%D7%A2%D7%91%D7%A8%D7%99%D7%AA&quot;
&gt;   filename*=utf-8&apos;en&apos;%D7%A2%D7%91%D7%A8%D7%99%D7%AA

AFAICT, these only differ in that the original one has quotation marks.

Could you please clarify why they are no allowed? It is strange to me because (1) extended-initial-value is not referenced anywhere else in RFC 2231, so formally speaking, it does not mean anything; and (2) RFC 2231 itself has an example that uses quoted strings:

   Content-Type: application/x-stuff
    title*0*=us-ascii&apos;en&apos;This%20is%20even%20more%20
    title*1*=%2A%2A%2Afun%2A%2A%2A%20
    title*2=&quot;isn&apos;t it!&quot;

Does the variant with quotations marks work in other browsers?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>88669</commentid>
    <comment_count>11</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2008-08-17 05:52:29 -0700</bug_when>
    <thetext>&gt; AFAICT, these only differ in that the original one has quotation marks.

Yes.

&gt; Could you please clarify why they are no allowed? It is strange to me because
&gt; (1) extended-initial-value is not referenced anywhere else in RFC 2231, so

That&apos;s a known erratum, see http://www.rfc-editor.org/errata_search.php?eid=477.

&gt; formally speaking, it does not mean anything; and (2) RFC 2231 itself has an
&gt; example that uses quoted strings:

But not in the initial value.

&gt; Does the variant with quotations marks work in other browsers?

I&apos;m going to test it, but I&apos;m really not sure why it would matter. The spec is there for a reason.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89169</commentid>
    <comment_count>12</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2008-08-23 09:31:30 -0700</bug_when>
    <thetext>More test cases: &lt;http://greenbytes.de/tech/rfc2231/&gt;

Proposed profile for use of RFC2231 encoding in HTTP: &lt;http://greenbytes.de/tech/webdav/draft-reschke-rfc2231-in-http-latest.html&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89835</commentid>
    <comment_count>13</comment_count>
    <who name="Nir Soffer">nirs</who>
    <bug_when>2008-08-31 19:11:24 -0700</bug_when>
    <thetext>(In reply to comment #12)
&gt; More test cases: &lt;http://greenbytes.de/tech/rfc2231/&gt;
http://greenbytes.de/tech/tc2231/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>280645</commentid>
    <comment_count>14</comment_count>
    <who name="Julian Reschke">julian.reschke</who>
    <bug_when>2010-09-17 08:11:58 -0700</bug_when>
    <thetext>In the meantime, draft-reschke-rfc2231-in-http has been published as IETF RFC 5987 on the standards track.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>16398</attachid>
            <date>2007-09-26 08:56:28 -0700</date>
            <delta_ts>2007-09-26 08:56:28 -0700</delta_ts>
            <desc>CGI script demonstrating the problem</desc>
            <filename>download.py</filename>
            <type>text/plain</type>
            <size>213</size>
            <attacher name="Nir Soffer">nirs</attacher>
            
              <data encoding="base64">IyEvdXNyL2Jpbi9lbnYgcHl0aG9uCiMgfip+IGNvZGluZzogdXRmLTggfip+CgpwcmludCAnJydc
ClN0YXR1czogMjAwIE9LCkNvbnRlbnQtVHlwZTogdGV4dC9wbGFpbgpDb250ZW50LURpc3Bvc2l0
aW9uOiBpbmxpbmU7IGZpbGVuYW1lKj0idXRmLTgnZW4nJUQ3JUEyJUQ3JTkxJUQ3JUE4JUQ3JTk5
JUQ3JUFBIgpDb250ZW50LUxlbmd0aDogMTEKCtei15HXqNeZ16onJycK
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>22834</attachid>
            <date>2008-08-16 12:37:43 -0700</date>
            <delta_ts>2008-08-16 12:37:43 -0700</delta_ts>
            <desc>Fixed test case</desc>
            <filename>download.py</filename>
            <type>text/plain</type>
            <size>201</size>
            <attacher name="Nir Soffer">nirs</attacher>
            
              <data encoding="base64">IyEvdXNyL2Jpbi9lbnYgcHl0aG9uCiMgfip+IGNvZGluZzogdXRmLTggfip+CgpwcmludCAnJydc
ClN0YXR1czogMjAwIE9LCkNvbnRlbnQtVHlwZTogdGV4dC9wbGFpbgpDb250ZW50LURpc3Bvc2l0
aW9uOiBpbmxpbmU7IGZpbGVuYW1lKj11dGYtOCdlbidKJUMzJUJDcmdlbgoKVGhpcyBmaWxlIHNo
b3VsZCBiZSBzYXZlZCBhcyBKw7xyZ2VuLgonJycK
</data>

          </attachment>
      

    </bug>

</bugzilla>