To reproduce:
1. Create a vocabulary
2. Add an 'Image' field with private storage
3. Create a term with an image
4. View the term. The image does not show because of a 403.

I tried the same for other entities, such as nodes, but here the same problem does not happen because node.module implements hook_file_download_access which explicitly allows access to the file in the field. The same happens for user_file_download_access.

It appears to me that the same pattern should (have) be(en) implemented for taxonomy.module.

Comments

bvanmeurs’s picture

bvanmeurs’s picture

Status: Active » Needs review
bvanmeurs’s picture

Used the wrong permission (was access nodes, must be access content). Note that this is the permission used to (dis)allow access to the taxonomy term in the menu item in taxonomy_menu.

bvanmeurs’s picture

Follow-up please?

dazz’s picture

Status: Needs review » Fixed

Had the same problem, the patch in #3 fixed it for me.

shrop’s picture

I actually had this exact issue today.

Should this be marked fixed if it hasn't been committed to 7.x-dev?

bvanmeurs’s picture

Version: 7.x-dev » 8.x-dev
Status: Fixed » Needs review

Thanks for your comments.

This hasn't been committed to dev. But as this issue probably also exists in Drupal 8, I will move it to drupal 8 and add a backport to 7 tag. Maybe that way it will get noticed.

bvanmeurs’s picture

Issue tags: +Needs backport to D7

.

berdir’s picture

Status: Needs review » Closed (duplicate)
berdir’s picture

Issue summary: View changes

typo

off’s picture

Issue summary: View changes

Same problem