Download & Extend

Boost corrupts WebFM PDF attachments

Project:Boost
Version:6.x-1.x-dev
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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.

Comments

#1

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?

#2

Able to reproduce, now working on a fix

#3

Status:active» needs review

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.

AttachmentSize
boost-609640.patch 1.02 KB

#4

Status:needs review» fixed

committed

#5

Thanks, working.

#6

Status:fixed» closed (fixed)

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

nobody click here