-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix for csv preview with legacy_url_path
Reference issue:https://govuk.sentry.io/issues/4265154142/?alert_rule_id=3654813&alert_type=issue¬ification_uuid=8ab09d48-0416-4305-9e3c-0de49561a46a&project=202225&referrer=slack Currently content item when it returns attachments, it returns modern url hence when it tries to find for legacy url, it fails and @attachment_metadata is empty this cause @attachment_metadata.first to be nil and hence the error. With the fix we try to not rely on legacy_url_path, instead we look for the filename.
- Loading branch information
1 parent
29f35e0
commit 35c07f7
Showing
2 changed files
with
14 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters