Closed
Bug 1294661
Opened 9 years ago
Closed 9 years ago
Detect type even when mime type is incorrect (in case of pdf, odt, xls....)
Categories
(Firefox :: File Handling, defect, P3)
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: pierre, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
Build ID: 20160802213348
Steps to reproduce:
Open
http://secli.cef.fr/images/imagesFCK/file/4_actualites/infos_pratiques/RELANCE20152016/Seclidepliantpresentation.pdf
Actual results:
Today, this pdf is not detected (because mime type is incorrect : application/octet-stream)
Expected results:
Detect it is .pdf anyway ! Ok it is a non conforming site but I want to open it anyway.
At minimum, use the extension to propose .pdf viewer (today, it prposes me vim!).
The same for .odt, .xls,...
Comment 1•9 years ago
|
||
Reproducible
Version 48.0
Build ID 20160726073904
User Agent Mozilla/5.0 (X11; Linux i686; rv:48.0) Gecko/20100101 Firefox/48.0
Status: UNCONFIRMED → NEW
Component: Untriaged → File Handling
Ever confirmed: true
Comment 2•9 years ago
|
||
This seems to be a feature request.
Server responses the incorrect header, and it causes this problem. Attach the header.
As reporter mentioned, server responses "Content-Type: application/octet-stream"
---------------------------------------------
Cache-Control: must-revalidate
Connection: Keep-Alive
Content-Description: File Transfer
Content-Disposition: attachment; filename=Seclidepliantpresentation.pdf
Content-Language: fr
Content-Length: 217246
Content-Type: application/octet-stream
Date: Fri, 19 Aug 2016 09:01:54 GMT
Expires: 0
Keep-Alive: timeout=15, max=99
Pragma: public
Server: Apache
content-transfer-encoding: binary
---------------------------------------------
Set priority to P3.
Add it to product backlog.
Priority: -- → P3
Reporter | ||
Comment 3•9 years ago
|
||
Yes, it is an incorrect header from the server.
And yes, it is a feature request and not a true firefox bug.
But it is a very common problem and very frustrating.
Comment 4•9 years ago
|
||
Dupe of Bug 1297912?
Comment 5•9 years ago
|
||
(In reply to William Hsu [:whsu] from comment #4)
> Dupe of Bug 1297912?
My bad. Spoke too quickly.
It seems to me that it's duplicate of Bug 306471.
Comment 6•9 years ago
|
||
IE used to be very lenient to mime types and it caused many security holes.
We should not disregard mime types beyond what is defined in the mimesinff spec.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•