Closed (works as designed)
Project:
Commerce File
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 May 2012 at 21:00 UTC
Updated:
16 Jun 2012 at 21:26 UTC
I've just upgraded to the newest dev version, and it seems to have reset all licenses limits to zero instead of unlimited as it was before. All my users are getting access denied when trying to download. Any idea what happened or how to fix?
Comments
Comment #1
sher1 commentedHaving this problem as well. None of the customers can download their files. I have changed the File license to unlimited from 0 seconds but none of the files are showing up for download on the users files page.
Comment #2
sher1 commentedI am getting this on the beta, not the dev line so it looks to be broken in both.
Comment #3
sher1 commentedI had thought it was related to Commerce 1.3 but I have reverted to 1.2 and it is still happening the same way.
Comment #4
valante commentedA quick note to everyone who's run into this bug: If you need unlimited downloads, you can simply remove all the limit conditions from the Rule that approves the download. That's what I did as a stopgap measure.
Comment #5
sher1 commentedAre you talking about the rule called
Control access to licensed file downloads
?
Thanks
Comment #6
sher1 commentedCould you paste your rule here?
Comment #7
valante commentedYes, that's the rule I'm talking about, and I simply removed all conditions. My new rule reads:
Comment #8
sher1 commentedI changed my rule like you showed and it did not fix the problem. I still have people with orders that shows
I changed the link title from Files to Downloads. You don't think that could be breaking it?
Comment #9
sher1 commentedI had thought that maybe it wasn't working because I was trying to work with existing orders that hadn't been displaying. But, even with the rule trimmed down and a new order created, they can't see their downloads. This has gotten really critical. Has anyone got any other ideas?
Comment #10
sher1 commentedOK, so I just had the idea to get the download link for the file as an admin and then masquerade as the user who should have been able to get the file and hadn't been able to. Once I was masqueraded, I pasted the link and it worked. Does this mean that it is just the view that is bad or are permissions different with masquerade than I am thinking?
Comment #11
sher1 commentedJust verified that it is the view that is bad. I completed an order, the downloads page says no files available and yet I can still get to the file with a download link garnered from the administrator view of the users download page. Now to figure out why.
Comment #12
sher1 commentedOK so I reverted my view and now it is working. The limits set to zero was totally a red herring because in looking at the file licenses page, it says that the numbers (in my case 0) were being added to the existing limits. So this was mostly a red herring. I still would like to figure out why the relationships in the views were breaking the ability to see the view for customers but will figure that out later.