Closed (fixed)
Project:
Webform Protected Downloads
Version:
7.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Mar 2012 at 12:36 UTC
Updated:
26 Jun 2012 at 01:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
xcession commentedMy mistake, accidentally mis-named my patch file and also broke it completely :P
Comment #2
berliner commentedHi xcession, thanks for your work. Can you please provide details about how the current version of the code fails?
Comment #3
xcession commentedAt present the errors occurs when the editor chooses the "Access type": "Access expires", then enters 0 in both expiry fields.
In this situation we discovered that when a user submits the form, the 'expires' field in the database is populated with the date at which the form was submitted.
The module functions which check validity appear to be expecting the 'expires' field to be 0 or > time() but as neither is true the user is presented with the "invalid link" message.
Comment #4
berliner commentedThanks for reporting and fixing this. The patch has been committed to the dev branch.
I'm keeping this issue open until the patch has been ported to the 7.x-branch as well.
Comment #5
berliner commentedpatch has been ported to 7.x branch
Comment #7
abeld2 commentedHello!
thanks for the patch!!!
But Cron kills the download link if both parameters set to zero.
Maybe someone can update the patch?
Drupal 7.x
Danny
Comment #8
berliner commentedThanks for mentioning that. Could you try the attached patch and report back whether it solves the issue?
Comment #9
jp.stacey commentedHi @berliner,
I'm working on the same codebase as @xcession, so D6 rather than D7.
Please find @xcession's patch and your cron patch combined and re-rolled against 6.x-1.0-rc3 .
Comment #10
berliner commentedThanks. Just waiting for feedback, then this can go into the respective dev branches and I think it's time for new releases with the latest additions included.
Comment #11
abeld2 commentedI can give a feedback at tuesday.
Comment #12
abeld2 commentedIt seems working, OK! Thanks!
Comment #13
berliner commentedCommitted to dev branches for 6.x and 7.x.
Thanks for reporting back.