<?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>32262</bug_id>
          
          <creation_ts>2009-12-07 21:02:46 -0800</creation_ts>
          <short_desc>Inappropriate automatic download of file with Content-Type: text/html</short_desc>
          <delta_ts>2009-12-12 20:58:56 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Page Loading</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>OS X 10.6</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://poi.apache.org/download.html#POI-3.5-FINAL</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="Alan Ruttenberg">alanr-w</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>169596</commentid>
    <comment_count>0</comment_count>
    <who name="Alan Ruttenberg">alanr-w</who>
    <bug_when>2009-12-07 21:02:46 -0800</bug_when>
    <thetext>For the download links on this page, the links labeled as .gz files are actually html pages, as indicated by the Content-Type header.
Nonetheless Safari downloads the html and puts it in a file of the name of the link.
See ASF Bug https://issues.apache.org/bugzilla/show_bug.cgi?id=47513 for the bug report on their side.


GET /dyn/closer.cgi/poi/release/bin/poi-bin-3.5-FINAL-20090928.tar.gz HTTP/1.1
Host: www.apache.org
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10
Referer: http://poi.apache.org/download.html
Accept: application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-us
Accept-Encoding: gzip, deflate
Connection: keep-alive

HTTP/1.1 200 OK
Date: Tue, 08 Dec 2009 04:44:49 GMT
Server: Apache/2.3.4 (Unix) mod_fcgid/2.3.2-dev
Cache-Control: max-age=86400
Expires: Wed, 09 Dec 2009 04:44:49 GMT
Vary: Accept-Encoding
Content-Encoding: gzip
Content-Length: 5874
Keep-Alive: timeout=30, max=100
Connection: Keep-Alive
Content-Type: text/html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>169721</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2009-12-08 10:40:41 -0800</bug_when>
    <thetext>This also happens under Mac OS X 10.6, so changing the platform.

The decision to change the content type based on extension is made by a system library below WebKit. Closing as INVALID per our policy, as this is not a WebKit bug.

Would you be willing to report this to Apple via &lt;http://bugreport.apple.com&gt; (free registration required)? I think that it&apos;s not right to change reported content type due to file extension without at least attempting content sniffing, but developers working on this code may have better perspective on the reasons for such behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>171144</commentid>
    <comment_count>2</comment_count>
    <who name="Alan Ruttenberg">alanr-w</who>
    <bug_when>2009-12-12 18:00:00 -0800</bug_when>
    <thetext>Filed as Problem ID: 7467342</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>