When viewing a pdf file uploaded with WebFM the file is opened instead of downloaded, resulting in the "raw" text of a pdf-file. This bug only happends with non-logged-in users and Firefox. IE works fine and it also works good with Firefox when boost is turned off.

I'm using Drupal 6.14 and PHP 5.2.6.

CommentFileSizeAuthor
#3 boost-609640.patch1.02 KBmikeytown2

Comments

mikeytown2’s picture

How can I reproduce this bug locally so it can be fixed?

This module
http://drupal.org/project/webfm

Public/Private downloads? Only PDF, anything else?

mikeytown2’s picture

Able to reproduce, now working on a fix

mikeytown2’s picture

Status: Active » Needs review
StatusFileSize
new1.02 KB

Boost was too aggressive in what it was trying to cache. WebFM sends out multiple headers, one of them being text/html, the other being application/pdf. It was picking up the text/html and caching the PDF as text/html. Now boost only looks at the last header sent, which would be application/pdf in this case.

mikeytown2’s picture

Status: Needs review » Fixed

committed

MariusMaass’s picture

Thanks, working.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.