Closed
Bug 1340246
Opened 8 years ago
Closed 8 years ago
bug: Multi-extension parsing problem
Categories
(Firefox :: Untriaged, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: nailyk_launchpad, Unassigned)
Details
Attachments
(1 file)
|
79.54 KB,
application/pdf
|
Details |
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0
Build ID: 20161213204132
Steps to reproduce:
I provide LineageOS roms. At build end you get two files:
cm-12.1-20170213-nailyk-z3c.zip
cm-12.1-20170213-nailyk-z3c.zip.md5sum
both are auto pushed to a h5ai script ( https://crusader.synhacx.eu.org/releases/cm-12.1/ )
Into Firefox I set download as "always ask", for convenient purpose, but same behavior happens when downloads are 'auto-opened'.
1. Click on the zip.md5sum file, a popup to select action get opened,
2. Select open with notepad/mousepad/gedit/any text editor & 'always use this action', (capture 1)
3. click on the zip file, it will download and will be open with your text editor. (capture 2)
Capture 3 & 4 are Application settings.
Tested on win7x64 FF51.0.1, Debian 8 FF 45.6.0, xubuntu 16.10 (FF version not checked)
P.S.: add.zip(.md5sum) on https://crusader.synhacx.eu.org/releases/cm-12.1/ are for this issue, preventing opening a 300Mb zip into a text editor.
Actual results:
'zip' file extension and 'zip.md5sum' are handled on the same way ('zip')
Expected results:
'zip' file extension and 'zip.md5sum' are handled uniquely.
Severity: normal → minor
OS: Unspecified → All
Hardware: Unspecified → x86
Version: 45 Branch → 51 Branch
Comment 1•8 years ago
|
||
It's more like an issue in server configuration.
Here's response header for cm-12.1-20170213-nailyk-z3c.zip.md5sum:
Date: Thu, 16 Feb 2017 18:53:42 GMT
Server: Apache
Last-Modified: Mon, 13 Feb 2017 04:21:07 GMT
Etag: "7d-54861c6bf560b"
Accept-Ranges: bytes
Content-Length: 125
Keep-Alive: timeout=5, max=100
Connection: Keep-Alive
Content-Type: application/zip
and response header for cm-12.1-20170213-nailyk-z3c.zip:
Date: Thu, 16 Feb 2017 18:53:28 GMT
Server: Apache
Last-Modified: Mon, 13 Feb 2017 04:21:07 GMT
Etag: "11fbf122-54861c6bf560b"
Accept-Ranges: bytes
Content-Length: 301723938
Keep-Alive: timeout=5, max=99
Connection: Keep-Alive
Content-Type: application/zip
The server returns "Content-Type: application/zip" for both files.
That's the reason why Firefox passes those files to same handler, associated with application/zip type.
At least returning application/zip for md5sum file doesn't sound right.
I guess you need to configure the server to return text/plain or something for it.
Really sorry.
As it isn't the only website where this problem happens I though it was a Firefox issue.
Closing now.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•