Closed (fixed)
Project:
Feeds
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
4 Apr 2012 at 16:17 UTC
Updated:
11 Jun 2012 at 11:31 UTC
Jump to comment: Most recent file
In getFile function in the FeedsEnclosure class the $destination argument for file_unmanaged_save_data is created as: "$destination/$filename", but destination in the case might be "public://" for example which results in a malformed uri. Here is a patch to fix this:
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | feeds-destination-uri-1515204-1.patch | 747 bytes | gnucifer |
Comments
Comment #1
gnucifer commentedComment #2
franzI've searched for this bug for some time. It causes private files to be saved as private:///filename which renders them unaccessible.
However, the patch is not discernible to me. It looks like it would make the URI "private:/filename" which is not correct too, right? Should it append "//" instead of "/" ? Or maybe the proper way would be to keep the original "$destination/$filename" with the added clause before it?
Comment #3
franzSorry, I get it now, patch works well!
Comment #4
franzCommitted.
Comment #5
ninhtran commentedI think this is what is needed to find, thanks for shared! in ao thun
Comment #6.0
(not verified) commentedinaccuracy