Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: ninhtran commentedI think this is what is needed to find, thanks for shared! in ao thun
Comment #6.0
(not verified) CreditAttribution: commentedinaccuracy