View Issue Details

IDProjectCategoryView StatusLast Update
0011372mantisbtattachmentspublic2010-06-09 03:45
Reporterschneebi Assigned Toatrol  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.0rc2 
Fixed in Version1.2.0 
Summary0011372: Can't open .msg-files
Description

First, I had the known problems with file_download.php (exaused memory).
After installing the nightly-build (2010-01-09), everything works fine, except .msg-files.

If I click on a .msg-file, Mantis tries to open the file with MS Word. If I'd select "open with" and then MS Outlook, Outlook opens a new mail, and the .msg-file is attached.

TagsNo tags attached.
Attached Files

Activities

atrol

atrol

2010-01-09 10:07

developer   ~0024111

What is happening if you double click the msg file in Windows Explorer?
Same behaviour? If yes, your problem is not related to MantisBT

schneebi

schneebi

2010-01-09 10:15

reporter   ~0024112

If I download and save the .msg-file and then double click it, everything works fine (outlook opens the file directly).

dhx

dhx

2010-01-09 20:45

reporter   ~0024114

Last edited: 2010-01-09 20:46

Which browser are you using?

Are you using PHP 5.3.0 or, alternatively, 5.1.x or 5.2.x with the fileinfo extension?

This really does sound like a problem with how your browser maps MIME types to actions (which application to open, etc).

schneebi

schneebi

2010-01-11 00:47

reporter   ~0024120

This issue was tested on Firefox 3.5.7, also on IE 8.0 and IE 6.
My host is using PHP 5.2.11.

With Mantis 1.1.8 (or other web-applications we are using), everything works fine.
It only happens in Mantis 1.2.0rc2.

schneebi

schneebi

2010-01-11 01:11

reporter   ~0024121

Last edited: 2010-01-11 01:12

Tested here on mantisbt.org - it works fine...
With the same file on my 1.2.0rc-installation, it doesn't work... - on my 1.1.8-installation, it works fine. Both are on the same host.

mars-dev

mars-dev

2010-01-13 11:09

reporter   ~0024141

Last edited: 2010-01-13 11:10

I can confirm this bug.

@schneebi: You can fix it in file_download.php.
Replace line 108:
header( 'Content-Disposition:' . $t_disposition . ' filename*=UTF-8\'\'' . urlencode( $t_filename ) . '; filename="' . urlencode( $t_filename ) . '"' );
With this code:
header('Content-Disposition:' . $t_disposition . ' filename="' . $t_filename . '"');
The code above fixed all Problems in FF 3.5.7, IE 8 and Opera 10. Server is running Apache2 with PHP 5.2.9.

dhx

dhx

2010-01-14 08:54

reporter   ~0024151

@mars-dev: Your change essentially disables UTF-8 filenames from being possible, and limits you to the old school ASCII character set (not extended characters either). I can't see from that code why those changes would suddenly fix download problems with only .msg files... across 3 different browsers.

I'll just wait here to see if anyone else can reproduce this problem :)

mars-dev

mars-dev

2010-03-17 18:13

reporter   ~0024782

I think this one can be closed.
The Bug is solved in the final 1.2.0.