Closed
Bug 108186
Opened 23 years ago
Closed 23 years ago
Mailnews should use file extension in order to open application/octet-stream attachments
Categories
(SeaMonkey :: MailNews: Message Display, defect)
Tracking
(Not tracked)
VERIFIED
WONTFIX
People
(Reporter: fleona, Assigned: bugzilla)
References
Details
Attachments
(1 file)
53.20 KB,
image/jpeg
|
Details |
From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.5+) Gecko/20011101 BuildID: 2001110121 I got a mail with a picture of a girl in it. Mozilla does not display it, but if i save it i can view it with any image viewer Reproducible: Always Steps to Reproduce: 1.Get a girl to send you a picture that mozilla does not understand 2.Hope that she is not ugly Actual Results: Mozilla cant display the jpg. Come on, she is not that ugly Expected Results: Mozilla already shows uglier stuff
Reporter | ||
Comment 1•23 years ago
|
||
Reporter | ||
Comment 2•23 years ago
|
||
?? The image shows! The image shows, so it must be some other problem. I bet mozilla is using another header rather than trying to use image/jpeg
Reporter | ||
Comment 3•23 years ago
|
||
No wonder mozilla does not like the picture Content-Type: application/octet-stream; name="foto 2.JPG" Content-Transfer-Encoding: base64 Mime-Version: 1.0 Spanish web based email service latinmail.com is the culprit. Why does mozilla rely so heavily on the header and not on the file extension? Security? Reliability? Speed? Should this go to evangelism?
Comment 4•23 years ago
|
||
I don't think this is just an evangelism problem - Mozilla should error gracefully if the image can't be displayed or there is an error in image conversion. This bug sounds very similar to one I have experienced recently with some mail received in Moz.
Reporter | ||
Comment 5•23 years ago
|
||
Yes, so there are actually 2 problems in this bug 1) Mozilla fails to announce that it cannot display the image 2) Mozilla does not care for file extension, rather uses the header of the file that is included in the mail. This is a BIG SECURITY HOLE, because probably if i send a file called "something.jpg" and is encoded as a binary file, it could be executed. I take it that mozilla isn't foolish enough to open a binary file without asking, but since i use linux i dont know Nominating for mozilla 0.9.7
Keywords: mozilla0.9.7
Comment 6•23 years ago
|
||
> Why does mozilla rely so heavily on the header and not on the file extension? Because that's the only reliable way to tell the type. An extension is not it. The relevant specs are very clear -- when a type is given it MUST be used. No exceptions. > his is a BIG SECURITY HOLE, because probably if i send a file called > "something.jpg" and is encoded as a binary file, it could be > executed. No it would not. The mime types that correspond to binary files are special-cased to make sure that we prompt users before executing anything. This is a mailnews bug if it is a bug at all. Mailnews should consider sniffing the file extension in the case of application/octet-stream.
Assignee: pavlov → sspitzer
Component: ImageLib → Mail Window Front End
Product: Browser → MailNews
QA Contact: tpreston → esther
Comment 7•23 years ago
|
||
I would think that it's pointless to try making Mozilla file extension-aware for all file types, so this bug would better lie in latinmail.com's bug list. Besides, I could see this becoming a lot like dual inheritance in CSS -- which one takes greater precedence, the mime type or the file extension? (Sorry, couldn't come up with a better analogy :)
Reporter | ||
Comment 8•23 years ago
|
||
I second Boris´idea. As i discovered, this is really a latinmail bug, but perhaps we can make mozilla smarter around this.
Summary: Mozilla refuses to display ugly pictures in mail → Mailnews should use file extension in order to open application/octet-stream attachments
Comment 10•23 years ago
|
||
marking wontfix. JF, please reopen if you think there's something we could or should do.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → WONTFIX
Comment 12•20 years ago
|
||
*** Bug 244520 has been marked as a duplicate of this bug. ***
Comment 13•20 years ago
|
||
*** Bug 261156 has been marked as a duplicate of this bug. ***
Updated•20 years ago
|
Product: Browser → Seamonkey
Comment 14•20 years ago
|
||
*** Bug 267047 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•