Download & Extend

Incorrect link to private file system

Project:Search Files
Version:6.x-2.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:fixed

Issue Summary

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

#1

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.

#2

Version:6.x-2.0-beta4» 6.x-2.x-dev
Status:active» reviewed & tested by the community

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?

AttachmentSize
search_files_attachments.private_file_system.patch 1.02 KB

#3

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

#4

Thanks. That fixed one of my problems, too.

#5

Works also for me.

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

#6

Status:reviewed & tested by the community» fixed

I have committed the patch in #2