Incorrect URLs for files uploaded via webform with file_encrypt

Created on 28 March 2020, about 5 years ago
Updated 12 April 2024, 12 months ago

Steps to reproduce

  1. Configure webform_encrypt and file_encrypt as per https://www.drupal.org/project/webform_encrypt/issues/3038902#comment-13...
  2. Set up a webform with an encrypted file field
  3. Submit the form with a file
  4. View the submission
  5. Click the file link

Expected result

The file should be available for download from e.g. http://localhost:8090/encrypt/files/webform/encrypt_webform_test/213689/...

Actual result

The page responds with 404, but if you manually add the query parameter, it behaves as expected, eg. http://localhost:8090/encrypt/files/?file=webform/encrypt_webform_test/2...

Notes

I had wondered if 🐛 Fix download route when installed with the redirect module RTBC may be related, but the issue still occurred with the patch from that issue, and with redirect uninstalled.

🐛 Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom malcomio

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇵🇹Portugal rutiolma

    The patch on this issue fixes several issues which are being tackled on #2946320 and #3155174
    And, as explained at comment #5, the issue reported here doesn't exist if fast404 whitelist is set.

    I'm closing this in favor of #2946320 and #3155174

Production build 0.71.5 2024