In the attached files search results the link to the file is incorrect when you configured Drupal in secure file system. The file path is not rewritten to the http://domain.con/system/files/attachedfile.ext but it is http://domain.com/absolutepath/attachedfile.ext that of course (and fortunately) is not reachable by the browser.

Comments

ñull’s picture

Title: Incorrect link to secure file system » Incorrect link to private file system

change in my explanation the word secure with private. What I mean is that the upload file path of Drupal is outside the document root and download method is set to private.

ñull’s picture

Version: 6.x-2.0-beta4 » 6.x-2.x-dev
Status: Active » Reviewed & tested by the community
StatusFileSize
new1.02 KB

Attached a patch for this issue. I only fixed the attached files module. I don't use directory search, so may be someone else can do the same there?

jonathan_hunt’s picture

That patch works for me, thanks (not tried with directory search).

sterndata’s picture

Thanks. That fixed one of my problems, too.

aCCa’s picture

Works also for me.

I suggest to commit it at least to the dev branch.

jrglasgow’s picture

Status: Reviewed & tested by the community » Fixed

I have committed the patch in #2

Status: Fixed » Closed (fixed)

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