Closed Bug 196578 Opened 22 years ago Closed 20 years ago

"Mozilla cannot handle the file of type JPEG image" or "HTML document"

Categories

(Core Graveyard :: File Handling, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED EXPIRED

People

(Reporter: ross, Assigned: law)

Details

User-Agent: Mozilla/5.0 Galeon/1.2.7 (X11; Linux i686; U;) Gecko/20021226 Debian/1.2.7-6 Build Identifier: Mozilla/5.0 Galeon/1.2.7 (X11; Linux i686; U;) Gecko/20021226 Debian/1.2.7-6 My girlfriend has a webmail account with talk21.com. If she gets sent an attachment (say HTML or a JPEG image), there is a HTML FORM button to press. I click on it, and a dialog pops up saying that "Mozilla cannot handle the file of type JPEG image" or "HTML document". I have to save it to disk and open it again. Obviously, Mozilla can handle HTML documents. I used liveheaders to capture the header stream: http://62.172.192.184/servlet/com.talk21.service.app.attach.GetAttachServlet POST /servlet/com.talk21.service.app.attach.GetAttachServlet HTTP/1.1 Host: 62.172.192.184 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021226 Debian/1.2.1-9 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1 Accept-Encoding: gzip, deflate, compress;q=0.9 Accept-Charset: ISO-8859-1, utf-8;q=0.66, *;q=0.66 Keep-Alive: 300 Connection: keep-alive Referer: http://62.172.192.184/servlet/com.talk21.service.app.AppServlet?page=RIGHT-INDEX&jrunsessionid=1047236241407229353&id=1046151606731 Content-Type: application/x-www-form-urlencoded Content-Length: 103 jrunsessionid=1047236241407229353&target=3&id=1046151606801&but=%3D%3Fus-ascii%3FQ%3Fbombtech.jpg%3F%3D HTTP/1.x 200 OK Date: Sun, 09 Mar 2003 18:58:58 GMT Content-Type: IMAGE/JPEG Connection: close content-disposition: attachment; filename==?us-ascii?Q?bombtech.jpg?= Server: JRun Web Server/1.0 Via: 1.0 webcacheH07 (NetCache NetApp/5.3.1R2) Are the headers incorrect? Is this a bug in Mozilla? The images/html pages open correctly in IE, does the webmail code assume IE "features"? Reproducible: Always Steps to Reproduce:
My first reaction is that this behavior may be due to the following header: content-disposition: attachment; Which would make this bug similar to the vBulletin message board attachment situation. I'm not prepared to call who's right here tho.
> content-disposition: attachment; filename==?us-ascii?Q?bombtech.jpg?= That header will cause that dialog in Mozilla and a filepicker in IE. What headers does IE get from the site, out of curiousity?
How do I get the headers from IE? I used liveheaders to get the headers in Mozilla. I'm sure it opened in line in IE... but maybe it didn't. I guess at this point we are blaming the webmail code?
At this point I'm _suspecting_ that the webmail code is sending different headers to Mozilla and IE... Perhaps set Mozilla's useragent to that of IE using the UABar (an extension from mozdev) and then resniff the headers Mozilla gets?
-> bz
Assignee: darin → bzbarsky
Gar. I should never trust what I am told and try it myself. IE pops up an "Open, Save, Cancel" dialog. Hitting open results in the same dialog again, hitting Open results in a list of every program on the machine. Selecting IE opens the image. Of course, now when I try the site in Mozilla it Just Works -- possibly they have changed the behaviour. I will check tonight with liveheaders. There was an issue with hitting "Open With" and selecting Mozilla, in that the download appeared to occur in a seperate instance and thus the session state was lost, and the files could not be downloaded. I shall investigate more later.
Yeah, the "open with and select mozilla" thing is known. It'll be fixed at some point by adding a "view in browser" option to that dialog....
Ross, have you had a chance to look at this since comment 6? Just trying to figure out the current state of things here....
Current state is that I am confused. Galeon/Moz on my home machine pops up a "Save/Open With" dialog. Galeon/Moz at work opens the file directly. I'm not sure what is causing this and will be creating new accounts to check with blank ~/ dirs.
->file handling
Assignee: bzbarsky → law
Component: Networking: HTTP → File Handling
QA Contact: httpqa → petersen
Summary: Mozilla does not recognise text/html or image/jpeg correctly → "Mozilla cannot handle the file of type JPEG image" or "HTML document"
This is an automated message, with ID "auto-resolve01". This bug has had no comments for a long time. Statistically, we have found that bug reports that have not been confirmed by a second user after three months are highly unlikely to be the source of a fix to the code. While your input is very important to us, our resources are limited and so we are asking for your help in focussing our efforts. If you can still reproduce this problem in the latest version of the product (see below for how to obtain a copy) or, for feature requests, if it's not present in the latest version and you still believe we should implement it, please visit the URL of this bug (given at the top of this mail) and add a comment to that effect, giving more reproduction information if you have it. If it is not a problem any longer, you need take no action. If this bug is not changed in any way in the next two weeks, it will be automatically resolved. Thank you for your help in this matter. The latest beta releases can be obtained from: Firefox: http://www.mozilla.org/projects/firefox/ Thunderbird: http://www.mozilla.org/products/thunderbird/releases/1.5beta1.html Seamonkey: http://www.mozilla.org/projects/seamonkey/
This bug has been automatically resolved after a period of inactivity (see above comment). If anyone thinks this is incorrect, they should feel free to reopen it.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → EXPIRED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.