[SOLVED] Can't download any attachments, no error/blank page
Moderators: Developer, Contributor
[SOLVED] Can't download any attachments, no error/blank page
I am running Mantis 1.0.0a3 on CentOS 3.5 (Linux 2.4.21-32.0.1.ELsmp) with Apache 1.3.33 and PHP 4.3.11. I can upload attachments just fine, using either database or disk as the storage method. The problem is when I try to download an attachment. Using IE6, I just get a blank page. Using Mozilla Firefox, I am prompted to download the file, but nothing ever downloads. Firefox says the download is complete, but no file exists. The same thing happened with Mantis 1.0.0a2. I have tried a fresh installation of 1.0.0a3 with the same problem. I've searched this forum and briefly the mailing list without finding anyone with a similar issue. Can anyone give me an idea of where to start? Thank you.
Last edited by gsupp on 22 Jul 2005, 01:45, edited 2 times in total.
Could you please file a bug on this at http://bugs.mantisbt.org ? We should generate an error message if the file is missing on the server.
Done, bug #5973.thraxisp wrote:Could you please file a bug on this at http://bugs.mantisbt.org ? We should generate an error message if the file is missing on the server.
Thank you for the suggestion. However, I just checked in the folder where attachments are saved and the file exists. The file is owned by httpd.httpd with a chmod of 400. Furthermore, I checked in mantis_bug_file_table and the entry for 'diskfile' is correct.Woefdram wrote:I had something similar: empty page and a "download successful" message, but no file. It turned out I had accidentally tossed away a bunch of files on the server.
I think you should check if the file you uploaded really exists on your filesystem or in your database.
This problem seems very strange and it doesn't sound like anyone else has encountered it.
Hmm, sounds strange indeed. Maybe your webserver logfiles can give you some clues. If you use a proxy to connect to the Mantis server, maybe that causes some problem (try running a browser on the Mantis server itself and see if anything's different). But I'm afraid that's all the help I can give you for now.
Greetings,
Hans
Greetings,
Hans
Thanks for replying Hans. There's no proxy server in between my browser and the server running Mantis. The server doesn't run any graphical environment, so I can't run a web browser on it. I've checked error_log for apache and nothing is written to the log when I attempt to download an attachment. I also tried disabling mod_gzip, but it didn't seem to make any difference.
My suspicion turned out to be correct, gzip compression was messing up downloading files from Mantis. While I had previously disabled mod_gzip in httpd.conf, php.ini has it's own settings for gzipping content. My PHP installation was configured by H-Sphere which by default sets output_handler = ob_gzhandler. Once I commented out this line and restarted apache, downloads worked perfectly. As suggested on another forum, the Firefox extension LiveHTTPHeaders was invaluable in troubleshooting the problem. LiveHTTPHeaders allowed me to watch the http headers in real time while the page was being downloaded.gsupp wrote:I also tried disabling mod_gzip, but it didn't seem to make any difference.