Postponed (maintainer needs more info)
Project:
Apache Solr Attachments
Version:
7.x-1.0
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jun 2012 at 00:55 UTC
Updated:
20 Aug 2012 at 12:58 UTC
A search result looks like this:
---------------
012009_Doran_final.pdf
the Earth’s Deep Interior Michael Poland Geodesy Paul R. Renne Volcanology, Geochemistry, andapplication/pdf attached to: fdfdfdfd
----------------
The anchor around 012009_Doran_final.pdf has this URL:
http://local.policyonline.org.au/?q=sites/default/files/research/012009_...
Clicking on this URL produces a file not found error page. Not good.
The URL should look like:
http://local.policyonline.org.au/sites/default/files/research/012009_Dor...
Comments
Comment #1
farad commentedWorkaround is to activate Clean URLs.
Since the URL is referring to a downloadable file, this dependency on Clean URLs should not exist.
So this is still a bug.
Comment #2
nick_vhAny idea how we can resolve this?
We are using $filedocument->path = file_stream_wrapper_get_instance_by_uri($file->uri)->getExternalUrl();
Comment #3
nick_vhComment #4
luigisaMy solution!
global $base_path;
$path = file_stream_wrapper_get_instance_by_uri($file->uri);
// A path is not a requirement of an entity
if (!empty($path)) {
$filedocument->path = $base_path . $path;
}