View Issue Details

IDProjectCategoryView StatusLast Update
0010904mantisbtattachmentspublic2010-04-23 23:22
Reporterhansj Assigned Todhx  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
Product Versiongit trunk 
Summary0010904: Images attached to bugs can not be viewed in FF 3.5
Description

A click on the filename or the [^] behind the filename of an jpg image attached to a bug opens a new browser tab and complete garbage is shown.
PDF and others are working
Perhaps the mime type isn't set correctly or not set at all.

Steps To Reproduce
  1. Open Bug via https with FF 3.5
  2. Click on the filename of an attached jpg image
  3. the browser show the binary code of the image, not the image
Additional Information

IE 7 / 8 works fine.

TagsNo tags attached.

Relationships

duplicate of 0006047 confirmed Mimetype of attached files. 

Activities

dhx

dhx

2009-09-04 07:35

reporter   ~0022864

I can confirm this... I haven't looked into it yet because I just assumed I was the only one with the problem.

hansj

hansj

2009-09-04 07:35

reporter   ~0022865

The used file method is DATABASE

dhx

dhx

2009-09-04 07:42

reporter   ~0022866

The image is showing as a thumbnail correctly because the client sends the following header to file_download.php:

Accept: image/png,image/;q=0.8,/*;q=0.5

In other words, it knows it wants an image and therefore will attempt to display the result as such. MantisBT actually returns the Content-Type as text/html which is wrong.

When you click on an image to download/enlarge it, the client does not make an assumption that it is an image. The Accept image/png header is not sent. MantisBT again incorrectly returns the Content-Type as text/html.

dhx

dhx

2009-09-04 09:03

reporter   ~0022869

Please track 0006047 for updates and further discussion on fixing this problem.