Closed Bug 276874 Opened 20 years ago Closed 20 years ago

Firefox fails to determine filetye and save/oen file based on that

Categories

(Toolkit :: Downloads API, defect)

1.7 Branch
x86
Windows Server 2003
defect
Not set
minor

Tracking

()

VERIFIED INVALID

People

(Reporter: erik-wikstrom, Assigned: bugs)

Details

I've set u Firefox so that when clicking a torrent-file Firefox will launch a
bittorrent-client and start downloading. I've also set up so that when clicking
on a zip-file Firefox should bring up a Save-file dialog. Mostly it works as
exected but sometimes it fails and instead of launcing the bittorent-client when
clicking on a bittorent-file it brings up the save-file dialog.

Reproducability: Low
1. Set firefox to save zip-files automatically
2. Set firefox to open bittorent-files automatically
3. Find lots of zip-files shared as torrents and start klicking :(

I've noticed that I mostly get this trouble when downloading torrents from one
server and I was thinking that Firefox might rely on some information sent by
the server which it might not provide accurately. The server is
http://www.animewaves.net/ and the torrents can be found on the right.
-> invalid

used this example:
http://www.animewaves.net/bittorrent/%5BAW%5D_Pastel_v04_c31.zip.torrent?PHPSESSID=05daf3341fa4b2cbcc0d5420a6300acd

Header from the server (via http://web-sniffer.net)
HTTP Status Code: HTTP/1.1 200 OK
Date:	Mon, 03 Jan 2005 22:53:57 GMT	CRLF
Server:	Apache/1.3.33 (Unix) mod_auth_passthrough/1.8 mod_log_bytes/1.2
mod_bwlimited/1.4 PHP/4.3.9 FrontPage/5.0.2.2635 mod_ssl/2.8.22 OpenSSL/0.9.7a	CRLF
Last-Modified:	Sun, 02 Jan 2005 05:47:05 GMT	CRLF
ETag:	"d180ef-2df-41d78ad9"	CRLF
Accept-Ranges:	bytes	CRLF
Content-Length:	735	CRLF
Connection:	close	CRLF
Content-Type:	application/zip

The  server sends application/zip for the torrent file and Mozilla handles this
fiel as zip (correct).
The server should be fixed (and yes, this works in IE but the reason is that IE
violates the http RFCs)
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.