Closed (fixed)
Project:
Backup and Migrate
Version:
6.x-1.3
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Jun 2010 at 15:38 UTC
Updated:
5 Nov 2012 at 00:09 UTC
Jump to comment: Most recent file
Comments
Comment #1
TyraelTLK commentedI have the same problem.
Not only images but every file uploaded with filefield.
Comment #2
Patroclas commentedI had this problem and discovered that Imagefield module had been disabled. Cannot say if this was caused by B&M as filefiled module was upgraded at same time.
Comment #3
TyraelTLK commentedAfter re-enable imagefield I had to downgrade backup and migrate to get files and images working again.
Comment #4
rene_w commentedHad the same problem, nobody (including user #1) was able to access any files after updating to B&M 1.3: #845802: Access to (private) file system suddenly stopped working (Access denied)
Took me ages to track this down, since I expected anything to be the cause for this problem except B&R...
Comment #5
TyraelTLK commentedStill present with filefield 3.7 and imagefield 3.7
Comment #6
drinkingcoffee commentedI noticed this issue after a recent update to the backup_migrate module (which had not been updated for a number of months).
Using the private downloads method, we began receiving incorrect 'access denied' 403 errors for filefield and imagefield (and imagecache) files/images.
I traced the problem to a change made to the backup_migrate file_download hook (change made in revision 1.3.2.18 ).
the _backup_migrate_path_is_in_save_dir function changed from
to
That is, file_check_location was replace with file_create_path.
This seems incorrect, as file_create_path only takes one argument, not two.
The end effect, I believe is to mistakenly tell the backup_migrate module that it is responsible for the file in question and it subsequently returns a -1 in the file_download hook.
Patch is attached and tested.
Comment #7
halver commentedHappened to me too. Went back to v.1.2 and ran update.php and everything worked again.
Comment #8
tedfordgif commentedI think this might be the right patch. Sometimes $path will be relative to the files folder, others absolute, depending on the file download method and location of the files folder. This works on my private-downloads-outside-web-root setup.
Comment #9
rene_w commentedIs this patch in the latest B&M release (6.x-1.3)?
Comment #10
bwinett commentedsubscribing. Believe this issue also causes private downloads to fail.
Comment #11
rene_w commentedYes, this bug causes *all* downloads to fail for a whole Drupal site (when using the private method, at least), as I wrote above (#4). That's why I changed this bug to "critical", as it completely breaks a whole site (not a good thing to do for a backup module).
Comment #12
greg.harveyWow, glad I found this thread - I could've gone crazy trying to work out what the cause was! Time to upgrade to the 6.x-2.x branch then!
Comment #13
greg.harveyConfirmed, moving to the recommended branch resolves this. (I didn't realise this had changed, because 6.x-1.3 is still supported drush was not telling me it needed updating, for some reason. hmm...)
Comment #14
ronan commented