Ghost/ghost/core/test/unit/frontend
Daniel Lockyer 134c33cef5
🐛 Fixed missing source + resized images producing rendered 404 (#19869)
fixes https://linear.app/tryghost/issue/ENG-746/http-500-responses-when-handle-image-sizes-middleware-hits-missing

- in the event a request comes in for a resized image, but the source
image does not exist, we return a rendered 404 page
- we do this because we pass the NotFoundError to `next`, which skips
over the static asset code where we return a plaintext 404
- also included a breaking test that ensure we go to the next middleware
without an error
2024-03-18 18:32:10 +01:00
..
apps Fixed configUtils and adapter cache issues in E2E tests (#16167) 2023-01-30 14:06:20 +01:00
helpers Fixed get helper cache optimizations (#19865) 2024-03-15 00:18:15 +07:00
meta Reduced size of social metadata images (#19048) 2023-11-20 12:39:51 +00:00
services Fixed minor Node deprecation warning 2023-10-25 18:06:44 +02:00
utils Fixed configUtils and adapter cache issues in E2E tests (#16167) 2023-01-30 14:06:20 +01:00
web/middleware 🐛 Fixed missing source + resized images producing rendered 404 (#19869) 2024-03-18 18:32:10 +01:00