The "RSS element" formatter doesn't work as expected when using stream wrappers to handle files (e.g. when using the Storage API module without any local file storage).

In views_rss_core_field_formatter_view(), the use of drupal_realpath() means that the formatter tries to generate a derivative on every request, which results in a database duplicate key error.

As far as I can tell, it should be possible to get rid of the call to drupal_realpath() since the functions using $real_path all support stream wrappers.

Comments

wulff’s picture

Status:Active» Needs review
StatusFileSize
new954 bytes

I have attached a patch (based on 7.x-2.0-rc3, since that's the version we're currently using). It might apply to HEAD without too much fuss.

  • maciej.zgadzaj committed 710963f on 7.x-2.x authored by wulff
    Issue #1882274 by wulff: Make the "RSS <enclosure> element" formatter...

  • maciej.zgadzaj committed 1c066e1 on 6.x-2.x authored by wulff
    Issue #1882274 by wulff: Make the "RSS <enclosure> element" formatter...
maciej.zgadzaj’s picture

Version:7.x-2.0-rc3» 7.x-2.x-dev
Issue summary:View changes
Status:Needs review» Fixed

Committed and pushed to 7.x-2.x and 6.x-2.x.

Status:Fixed» Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.