Bug 15065
| Summary: | air_b1_mac_061107.dmg downloads incorrectly as air_b1_mac_061107.dmg.bz | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Graham Perrin <grahamperrin> |
| Component: | New Bugs | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED INVALID | ||
| Severity: | Normal | CC: | mrowe |
| Priority: | P2 | Keywords: | InRadar |
| Version: | 523.x (Safari 3) | ||
| Hardware: | Mac | ||
| OS: | OS X 10.4 | ||
| URL: | http://labs.adobe.com/downloads/air.html | ||
Graham Perrin
Safari Version 3.0.3 (522.12.1)
At <http://labs.adobe.com/downloads/air.html> the download for Mac results in a file name with a .bz suffix.
The same download obtained using Firefox has a .dmg suffix.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
My understanding is that this is a Safari issue that's outside open source WebKit.
Side note: personally, I find it annoying when Safari changes file extensions when downloading or saving files.
Mark Rowe (bdash)
This bug is below WebKit in the framework stack. The issue is that the web server is returning a generic MIME type (probably application/octect-stream) so content sniffing occurs to determine the correct file extension to use when saving the file. A disk image using bzip2 compression is structured in such a way that appears to be a standard bz2 file from the initial portion of the data received. This leads to the framework responsible for the sniffing to determine that it is a .bz2 file rather than a .dmg.
<http://www.unsanity.org/archives/mac_os_x/my_dmg_is_bwoken_after_download.php> has a bit more information about this issue, as well as providing a server-side workaround for the issue. I'm rather surprised that Adobe apparently does not test their Mac OS X downloads in Safari. They surely would have noticed this issue had they done so.
Closing as INVALID as the bug is not in WebKit. It is already in Radar, though I don't recall the number off the top of my head.