Link to audio file broken in a Multilingual site

fredigolo - March 4, 2009 - 21:44
Project:FileField Podcaster
Version:6.x-0.7
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:reviewed & tested by the community
Description

Hi all,

I tried to set up a podcast with ffpc 6x-0.7, View 2.3 & filefield 6.x-3.0-alpha7, in a multilingual site, but I believe the URL to the mp3 files in the podcast are being incorrectly generated.

A new filefield-enabled content type was created for the podcast items, and the mp3 files are uploaded to sites/default/files/podcast. Each podcast item can be accessed with any language prefix, by using the URL syntax http://mysite/language_prefix/content/XX URLs (where XX is the node name). However the link to the mp3 file is always http://mysite/sites/default/files/podcast/yyy.mp3 (where yyy is the name of the mp3 file), i.e, the URL does not include the language prefix.

When I create the podcast with ffpc, however, the items in the feed point to http://mysite/language_prefix/sites/default/files/podcast/yyy.mp3 files, which the server cannot find.

Thanks,

Fernando

#1

fredigolo - March 18, 2009 - 11:38
Status:active» patch (to be ported)

Hi,

I examined the code and observed that the URLs for the mp3 files in the Podcasts are being generated by the url() function and not by the file_create_url() one (used by the filefield module itself).

The attached patch correct this behaviour.

AttachmentSize
ffpc_media_link.patch 838 bytes

#2

fredigolo - March 18, 2009 - 11:42
Status:patch (to be ported)» needs review

Sorry, posted the patch with the wrong Status. Corrected now

#3

szb100 - April 10, 2009 - 14:44
Status:needs review» reviewed & tested by the community

Patch fixed the issues I had with file references, so I've changed status to tested.

#4

mohammed76 - July 1, 2009 - 07:13

hello.

when will we see this patch commited at least to the development version?

thanks.

#5

mattman - July 1, 2009 - 18:06

This issue is a duplicate of http://drupal.org/node/328649 Enclosure URL path not working for private files?, which I reopened because HEAD contains the file_create_url() on one of the file URL's but not the other.

This issue can be merged into that one.

 
 

Drupal is a registered trademark of Dries Buytaert.