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

sher1’s picture

Having 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.

sher1’s picture

I am getting this on the beta, not the dev line so it looks to be broken in both.

sher1’s picture

Priority: Major » Critical

I had thought it was related to Commerce 1.3 but I have reverted to 1.2 and it is still happening the same way.

valante’s picture

A 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.

sher1’s picture

Are you talking about the rule called
Control access to licensed file downloads
?
Thanks

sher1’s picture

Could you paste your rule here?

valante’s picture

Yes, that's the rule I'm talking about, and I simply removed all conditions. My new rule reads:

{ "commerce_file_license_download_access" : {
    "LABEL" : "Control access to licensed file downloads",
    "PLUGIN" : "reaction rule",
    "REQUIRES" : [ "commerce_file" ],
    "ON" : [ "commerce_file_license_download" ],
    "DO" : [
      { "commerce_file_license_allow_download" : { "license" : [ "commerce-file-license" ] } }
    ]
  }
}
sher1’s picture

I changed my rule like you showed and it did not fix the problem. I still have people with orders that shows

You do not have any licensed files.

I changed the link title from Files to Downloads. You don't think that could be breaking it?

sher1’s picture

I 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?

sher1’s picture

OK, 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?

sher1’s picture

Just 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.

sher1’s picture

Status: Active » Closed (works as designed)

OK 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.