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.
Problem/Motivation
The pdf download link is displayed for anonymous user, however it redirects to an empty page instead of pdf. I noticed that if I manually attach the token from the submission link, then the link works properly.
Steps to reproduce
1. Install webform_entity_print.
2. Add permissions for anonymous users - "Webform submission: Use all print engines"
3. Enable "Allow users to view a submission using a secure token"
4. Submit webform and click "Download PDF" link.
Proposed resolution
Attach a submission token in the function _webform_entity_print_webform_submission_links (webform_entity_print.module).
Comment | File | Size | Author |
---|---|---|---|
#6 | 3198932-6.patch | 3.68 KB | jrockowitz |
| |||
#5 | entity-print-doesn-t-work-with-secure-tokens-3198932-5.patch | 862 bytes | digdanlow |
#4 | entity-print-doesn-t-work-with-secure-tokens-3198932-4.patch | 862 bytes | digdanlow |
Comments
Comment #2
digdanlow CreditAttribution: digdanlow as a volunteer commentedComment #3
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedCan we please also fix this in 8.x-5.x?
Comment #4
digdanlow CreditAttribution: digdanlow as a volunteer commentedThis one is for 6.x.
Comment #5
digdanlow CreditAttribution: digdanlow as a volunteer commentedThis is the same one actually, duplicated.
Comment #6
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedAlways got to love when the test coverage is more work than the patch.
I am also verifying the token before appending it to the link.
Comment #9
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedI committed the patch. Please download the latest dev release to review.