View Issue Details

IDProjectCategoryView StatusLast Update
0011202mantisbtattachmentspublic2010-04-23 23:22
Reporterkecsi Assigned Todhx  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionduplicate 
PlatformLinuxOSDebianOS Version5.0.3
Product Version1.2.0rc2 
Summary0011202: attached images sent to browser without content type
Description

I can see attached image source but not the image and an error message reported just after image source:
SYSTEM WARNING: Cannot modify header information - headers already sent by (output started at /var/www/mantis_path_renamed/webroot/file_download.php:172)

Site Information
MantisBT Version 1.2.0rc2
Schema Version 173

Steps To Reproduce
  1. create an issue
  2. attach an image
  3. view issue url e.g view.php?id=137
  4. Click attached image url e.g. /file_download.php?file_id=36&type=bug
    See image source and not image and error message just after image source.

Internet explorer ignores this issue! So you wont see the error message in IE.
You need to test this with Firefox.

TagsNo tags attached.
Attached Files

Relationships

duplicate of 0011075 closeddhx File downloading - IE vs non-IE filename bugs 

Activities

dhx

dhx

2009-11-20 17:10

reporter   ~0023778

Already fixed in 0011075, please see there if you want to backport the patch. Otherwise you have two options... checkout the latest 1.2.x git branch or wait until the next 1.2.x release.

rledford

rledford

2009-12-29 12:38

reporter   ~0024010

Last edited: 2009-12-29 12:43

I am running Mantis 1.2.0rc2 plus fix pasted from 0011075. I am getting the following text added to all attached files that are saved from Mantis:
<p style="color:red">SYSTEM WARNING: Cannot modify header information - headers already sent by (output started at E:\www\scr\file_download.php:182)

I verified this on a custom file type and word .doc files.

Both Firefox and IE are adding this text to the end of any attachment downloaded.

dhx

dhx

2010-01-05 00:24

reporter   ~0024033

The fix in 0011075 isn't the only work done to file_download.php since RC2.

Please see http://git.mantisbt.org/?p=mantisbt.git;a=history;f=file_download.php;h=8edd4294ba151459aba569ab79e39e743b63dc5b;hb=fce04e6597310e9dd644612348354dc055e99dfa

For the other two patches you'll need to apply to fix the problem you're encountering.