Closed (fixed)
Project:
FileField Private Downloads
Version:
6.x-1.0-alpha1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Feb 2010 at 16:21 UTC
Updated:
22 Feb 2010 at 13:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
alan d. commentedThis looks fine but is it needed?
I would have thought that the first call to 'file_download' would have triggered content permissions checks, and if not, then there may be an access error here. I have no local testing environment at the moment to follow this up.
Eg: The code that I'm taking about is here, about line 240 in filefield_private.module:
Comment #2
dagmarI have committed a different patch for this bug.
The problem was that when filefield_file_download() is called, $conf doesn't have the correct directory to download the fields assigned yet.
So, when file_check_directory is called the file is not found and filefield_file_download() doesn't returns -1 because filefield thinks that this file is not in the {files} table.
Fixed in: http://drupal.org/cvs?commit=325804
Comment #3
alan d. commentedNice catch. This should be released asap, is it worth pushing through your other patch along with this one?