Boost corrupts WebFM PDF attachments

MariusMaass - October 20, 2009 - 16:36
Project:Boost
Version:6.x-1.x-dev
Component:Miscellaneous
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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.

#1

mikeytown2 - October 20, 2009 - 18:56

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

mikeytown2 - October 20, 2009 - 19:56

Able to reproduce, now working on a fix

#3

mikeytown2 - October 20, 2009 - 20:27
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

mikeytown2 - October 21, 2009 - 01:23
Status:needs review» fixed

committed

#5

MariusMaass - October 21, 2009 - 10:44

Thanks, working.

#6

System Message - November 4, 2009 - 10:50
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.