Hi,

I have a very weird problem, causing some downloads to produce Access Denied errors. As a anonymous user, i fill in the form and get redirected to the page where i have multiple downloadable files. I can download 2 out of 5 files without any problem. The other 3 files give me a access denied error.

To fix this, i have to give anonymous users the permission to administer webform protected downloads.

All caching is disabled. I dont have any other module installed regarding to private files.

Comments

berliner’s picture

Hi,

sounds indeed strange. Is the site online by any chance so that I could have a look for myself?

Some questions that might help me track down the problem:
Is it always the same three files that produce an access denied?
If so, is there anything particular about those files.
Can you send me the basic configuration of the webform protected downlaads settings, e.g. session expiration, download expiration, one time access vs. expiration.
Does the same thing happen when you create a new form with less / more files?

berliner’s picture

Status: Active » Postponed (maintainer needs more info)

any news on this?

nodecode’s picture

I can confirm this behavior with a certain use case.

It seems to manifest itself only when I attach an EXISTING file that has been INITIALLY uploaded by the Commerce File module and then added to a webform after upload. I'm not sure if this has implications for other developers but perhaps it will lead to some clues...

Steps to reproduce (I'm assuming WPD is already installed here):

  1. Install Commerce module and its sub modules
  2. Install Commerce File
  3. Install Media
  4. Add a "Commerce File" field type to the default Product by visiting admin/commerce/products/types/product/fields
  5. Create a new product by visiting admin/commerce/products/add/product and upload a file in the Commerce File field you just added.
  6. Add a File field type to your webforms by visiting admin/structure/types/manage/webform/fields. Choose the private files destination of course, use the "Media File Selector" widget type, and select only the "Library" option under "Enabled browser plugins".
  7. Create a webform as usual and select the existing file you uploaded in step 5 from your Library
  8. Mark this file in the Protected Downloads tab as usual
  9. Fill out the form anonymously and visit the download page to see the Access Denied message when you click the download link

whew. I hope that helps.

berliner’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Active