Closed (fixed)
Project:
Redirect
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Jun 2011 at 20:46 UTC
Updated:
7 Jul 2011 at 11:19 UTC
Jump to comment: Most recent file
Comments
Comment #1
dave reidSounds more like something in Media since a call to $uri = entity_uri($entity_type, $entity) should return either FALSE or array('uri' => '...', 'options' => array(...)) with the options array already defined. Redirect already handles the case if the return is FALSE.
Comment #2
dave reidWell this seems to be that you cannot call entity_uri() on a file entity as it already has $entity->uri defined as a string. Core bug is #1057242: entity_uri() should not use $entity->uri (was $file->uri doesn't match the contract for uri callbacks). I need to add a workaround in Redirect, so moving back to my issue queue.
Comment #3
dave reidFixed in Git with http://drupalcode.org/project/redirect.git/commit/ecf23c5. Thank you very much for reporting this issue.
Comment #5
theapi commentedFor those of us not ready to take the leap to Media 1.0-beta5 just yet, here's a modified version of the above patch that works with Media 1.0-beta4