Download & Extend

Files and Images don't work in private filesystem mode

Project:Drupal core
Version:7.x-dev
Component:file.module
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

When using a private filesystem, neither files nor images work, because file_get_file_references() is still severely broken.

[#846296] tested part of file_get_file_references(), but not the part where the check is done across all the fields (ie. $field is NULL).

Comments

#1

This was noted in the original post of [#846296].

#2

Status:active» needs review

The correct fix is simply, but we need a test of this.

AttachmentSizeStatusTest resultOperations
867928-file-private-downloads-broken.patch905 bytesIdlePASSED: [[SimpleTest]]: [MySQL] 22,196 pass(es).View details

#3

Status:needs review» reviewed & tested by the community

Tested, works!

#4

Priority:critical» normal
Status:reviewed & tested by the community» needs work

Committed to CVS HEAD but setting to 'needs work' because we still need a test.

#5

Status:needs work» needs review

Extended tests:
- Added check that file downloadable for public scheme
- Added check for changing 'uri_scheme' setting
- Added check for private method download works

AttachmentSizeStatusTest resultOperations
867928-file-tests-d7.patch3.12 KBIdlePASSED: [[SimpleTest]]: [MySQL] 22,479 pass(es).View details

#6

Status:needs review» reviewed & tested by the community

Looks good!

#7

Status:reviewed & tested by the community» fixed

Commit #402088 by Dries at 04:50
- Patch #867928 by Damien Tournoud, andypost: more tests for file and image handling.

#8

Status:fixed» closed (fixed)

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

nobody click here