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

CommentFileSizeAuthor
#2 filemanager-download.patch884 bytesvhmauery
acidfree.diff.txt796 bytesdmuth

Comments

drewish’s picture

Project: Filemanager » Acidfree Albums

this seems like an acidfree specific issue.

vhmauery’s picture

Status: Active » Needs review
StatusFileSize
new884 bytes

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.

vhmauery’s picture

Status: Needs review » Fixed

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

vhmauery’s picture

Status: Fixed » Closed (fixed)