Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hello, I have installed file_entity 7.x-2.0-alpha3, Commerce File 7.x-2.0-beta3, Commerce License 7.x-1.3.
After a product with an existing file on Amazon s3 was purchased, and clicks on the link in the user files tab - the link takes the user to Amazon xml page and says
"Access denied".
I saw this issue and it seems not solving the problem...
Where to start?
Comment | File | Size | Author |
---|---|---|---|
#6 | commerce_file-access-denied-2468699--7.x-2.x.patch | 1023 bytes | doostinharrell |
#6 | commerce_file-access-denied-2468699--7.x-2.0-beta3.patch | 1.03 KB | doostinharrell |
Comments
Comment #1
dorijrs CreditAttribution: dorijrs commentedComment #2
quietone CreditAttribution: quietone commentedI've had 'Access Denied' on all licensed downloads as well. I'm just learning commerce and I believe I had it working a few weeks ago but when I returned to work on it (local dev site) it was failing. So maybe my memory is wrong (won't be the first time).
Anyway, I rebuilt the dev site, made one licensed download, purchased and confirmed etc and definitely got 'Access Denied' for the anonymous user making the purchase as well as the administrator. After reading Access token generation changed in file_entity module. I decided to try the latest dev version of Commerce File. And it worked straight away.
With these I got 'Access Denied':
file_entity: 7.x-2.0-beta1 ( 2014-10-04)
commerce_file: 7.x-2.0-beta3 (2014-06-04)
With these it works:
file_entity: 7.x-2.0-beta1
commerce_file: 7.x-2.0-beta3+3-dev
Comment #3
jigish.addweb CreditAttribution: jigish.addweb at AddWeb Solution Pvt. Ltd. commentedProblem is generated with file_entity and commerce_file.
You can refer this: https://www.drupal.org/node/2183975
You need to alter your menu with your custom module
Hope this helps you.
Thanks!
Comment #4
valentin schmid CreditAttribution: valentin schmid commentedComment #5
DamienMcKennaComment #6
doostinharrell CreditAttribution: doostinharrell at Avid New Media commentedI had this issue recently and realized that the `file_entity_get_download_token` function was updated in more recent versions. Instead of copying code from `field_entity` into `commerce_file` we should use the functions provided by `file_entity` if it's installed. I've got 2 patches for this one for dev and another for beta3 which solved my issue.
I hope this helps someone else.
Comment #7
doostinharrell CreditAttribution: doostinharrell at Avid New Media commented