You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recipes that genuinely have no cover image are resulting in a 404 error in the logs. This results in a false positive in some of my security tools, banning the users ip address from communication with my server.
Expected:
If the recipe contains no image, there should be no request to retrieve the "min-original.webp" image.
OR
the API should recognize that the recipe has no image, and return an http 200 code with an empty body.
Steps to Reproduce
Open the chrome dev tools so you can see the full network log when the error is thrown.
Create a recipe manually, and do not attach an image.
Go to the recipes page. You will see all of your recipes including those without images
a call to the api is made "/api/media/recipes/4d647a74-bad9-476e-8a3d-ad132a13406e/images/min-original.webp?rnd=1&version=" and a 404 is returned and logged.
Please provide relevant logs
Log in Chrome browser from demo site GET https://demo.mealie.io/api/media/recipes/631d6769-9e8b-4199-83c0-ddf7eaafa086/images/min-original.webp?rnd=1&version=jL92 404 (Not Found)
NGINX logs in proxy-host-*access.log [31/Dec/2024:03:47:58 +0000] - 404 404 - GET https xxxx.xxxx.com "/api/media/recipes/4d647a74-bad9-476e-8a3d-ad132a13406e/images/min-original.webp?rnd=1&version=" [Client xxx.xx.xxx.xxx] [Length 22] [Gzip -] [Sent-to xxx.xx.x.x] "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36" "https://xxxx.xxxxx.com/g/xxxxx"
First Check
What is the issue you are experiencing?
Recipes that genuinely have no cover image are resulting in a 404 error in the logs. This results in a false positive in some of my security tools, banning the users ip address from communication with my server.
Expected:
OR
Steps to Reproduce
Please provide relevant logs
Log in Chrome browser from demo site
GET https://demo.mealie.io/api/media/recipes/631d6769-9e8b-4199-83c0-ddf7eaafa086/images/min-original.webp?rnd=1&version=jL92 404 (Not Found)
NGINX logs in proxy-host-*access.log
[31/Dec/2024:03:47:58 +0000] - 404 404 - GET https xxxx.xxxx.com "/api/media/recipes/4d647a74-bad9-476e-8a3d-ad132a13406e/images/min-original.webp?rnd=1&version=" [Client xxx.xx.xxx.xxx] [Length 22] [Gzip -] [Sent-to xxx.xx.x.x] "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Mobile Safari/537.36" "https://xxxx.xxxxx.com/g/xxxxx"
Mealie Version
Version
v2.4.1
Build
2922782e5ea44e1c5d2690c9aea84134a044a7cc
Deployment
Docker (Linux)
Additional Deployment Details
No response
The text was updated successfully, but these errors were encountered: