I want to create a preview (thumbnail) of al licensed file, but when I try to render it (eg at at /user/[uid]/my-files), I get an #403 (forbidden).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bojanz’s picture

Category: feature » bug
Status: Active » Needs review
FileSize
503 bytes

Hm, our access function might be too strict.
Try this patch, let me know if it changes anything.
If not, export the view and attach it here.

Chipie’s picture

FileSize
11.82 KB

The patch didn't change it. I have attached the view.

bojanz’s picture

Status: Needs review » Needs work

I have reproduced the issue using your view and I'm working on a fix.

bojanz’s picture

Title: How to create a preview of a purchased licensed file? » Can't stream licensed files or create their image derivatives
Version: 7.x-2.0-alpha3 » 7.x-2.x-dev
Status: Needs work » Fixed
FileSize
3.99 KB

Committed the attached patch.
Please test and let me know how it works on your end.

Status: Fixed » Closed (fixed)

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