Summary: | ASTERISK-05135: Mantis configuration error | ||
Reporter: | Roy Sigurd Karlsbakk (rkarlsba) | Labels: | |
Date Opened: | 2005-09-23 05:27:58 | Date Closed: | 2005-09-23 11:30:50 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/Configuration |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | dunno if this should be reported here, but mantis always sets Content-type to text/plain for attached files in bug reports. ****** ADDITIONAL INFORMATION ****** this downloads the image 'mrtg-comparison.jpg' from http://bugs.digium.com/view.php?id=3986 $ wget -SO test.jpg "http://bugs.digium.com/file_download.php?file_id=7511&type=bug" --12:23:01-- http://bugs.digium.com/file_download.php?file_id=7511&type=bug => `test.jpg' Resolving bugs.digium.com... 69.16.138.164 Connecting to bugs.digium.com[69.16.138.164]:80... connected. HTTP request sent, awaiting response... 1 HTTP/1.1 200 OK 2 Date: Fri, 23 Sep 2005 10:22:48 GMT 3 Server: Apache 4 X-Powered-By: PHP/4.3.10 5 Pragma: no-cache 6 Expires: 0 7 Cache-Control: no-store, no-cache, must-revalidate 8 Cache-Control: post-check=0, pre-check=0 9 Content-Length: 64449 10 Content-Disposition: filename="mrtg-comparison.jpg" 11 Content-Description: Download Data 12 Keep-Alive: timeout=15, max=100 13 Connection: Keep-Alive 14 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 100%[========================================================================================================================================>] 64,449 64.61K/s 12:23:03 (64.43 KB/s) - `test.jpg' saved [64449/64449] | ||
Comments: | By: Russell Bryant (russell) 2005-09-23 05:58:45 Does this actually cause a problem? This was done on purpose so that we don't have to keep bugging people to add ".txt" to their patches, backtraces, debug logs, etc. By: Roy Sigurd Karlsbakk (rkarlsba) 2005-09-23 06:00:35 it causes a problem if you try to view a binary file, like the .jpg file I just uploaded. it also causes a problem if uploading compressed files etc. By: Serge Vecher (serge-v) 2005-09-23 08:36:15 IE on XP Displays the image correctly By: Roy Sigurd Karlsbakk (rkarlsba) 2005-09-23 08:40:17 IE on XP looks into the file instead of using the content-type set, so, really, it doesn't count By: Russell Bryant (russell) 2005-09-23 11:30:37 Well, I think this is worth leaving the way it is. The number of attachments that are text compared to the number of attachments that are binary is very high. You can just save it to view it. Thanks for the report, though. |