When a view is showing files and has a relationship with the fid of that field, the result of that view will be empty.
I've tracked it down to the access check, that does a module_invoke('stream_wrappers') (file.inc line 127).

storage_core_bridge_stream_wrappers() returns STREAM_WRAPPERS_HIDDEN for all its' fields.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

thijsvdanker’s picture

When a view is showing files and has a relationship with the fid of that field, the result of that view will be empty.
I've tracked it down to the access check, that does a module_invoke('stream_wrappers') (file.inc line 127).

storage_core_bridge_stream_wrappers() returns STREAM_WRAPPERS_HIDDEN for all its' fields.
The patch checks for admin path to choose between hidden and visible.

Not sure if it's the cleanest way to go, but based on #1465760 it was once an option :)

Please review!

Andre-B’s picture

Status: Needs review » Needs work

do you have another solution rather than relying on admin path? I guess this wont fix the issue if a similar view outside of the admin section is shown.

Perignon’s picture

Status: Needs work » Closed (won't fix)

Marking closed due to no response.