"Force Private" setting on attachments module breaks in the acidfree module

dmuth - January 3, 2006 - 05:43
Project:Acidfree Albums
Version:4.6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

In the process of writing a patch for the attachment module to understand private files, I discovered that the files could not be downloaded. The cause of this is that acidfree's acidfree_filemanager_download() function does not find an acidfree node for the file, and assumes that permission should be denied in that case.

The patch I've attached modifies the function so that the absense of a node is treated as "this file is not handled by acidfree, so return true and let another module take care of it".

-- Doug

AttachmentSize
acidfree.diff.txt796 bytes

#1

drewish - January 31, 2006 - 00:27
Project:Filemanager» Acidfree Albums
Version:4.6.x-1.x-dev» 4.6.x-1.x-dev

this seems like an acidfree specific issue.

#2

vhmauery - January 31, 2006 - 17:09
Status:active» patch (code needs review)

I don't think returning true is what you want. Returning true would allow for the file to be downloaded. If it is not ours, we should return something that is not true and not false and not an array. So here is a patch that does returns null...

Let me know if this fixes your problem.

AttachmentSize
filemanager-download.patch884 bytes

#3

vhmauery - February 7, 2006 - 05:00
Status:patch (code needs review)» fixed

Well, I committed the patch. So I hope it works. It is in CVS awaiting repackaging in a few hours.

#4

vhmauery - February 7, 2006 - 16:29
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.