-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Fixing a 500 error when an asset was not found #14663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 5.2 #14663 +/- ##
=========================================
Coverage 63.65% 63.65%
+ Complexity 34657 34656 -1
=========================================
Files 2273 2273
Lines 103685 103684 -1
=========================================
+ Hits 65998 65999 +1
+ Misses 37687 37685 -2
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
Working as expected. Thanks @escopecz! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description:
This PR resolves this error:
It happens when a contact is trying to download an asset that do not exist.
From the behavior change perspective, this is how the contact history was before this change:

The consecutive asset download records couldn't be shown as it ended up with the 500 error. The first request worked only if the contact device wasn't tracked yet.
This is how it looks with this change:

Now the consecutive tries to download the asset will be tracked.
Notes about 404 tracking
If you wish to track the 404 attempts for download then make sure you have a 404 custom page selected and 404 page tracking enabled if you want to track the first tracking requests for anonymous contacts.
Steps to test
Other areas of Mautic that may be affected by the change:
List deprecations along with the new alternative:
List of areas covered by the unit and/or functional tests: