[MAGNOLIA-6923] Content-Type header not set when serving binaries from website Created: 12/Jan/17  Updated: 12/Jan/17

Status: Open
Project: Magnolia
Component/s: rendering
Affects Version/s: 5.4.9
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Ugo La Giorgia Assignee: Unassigned
Resolution: Unresolved Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled

 Description   

When serving binary content, for example, images uploaded in the website repository (contained within component/page) the Content-Type header is not set. I've narrowed it down to this class info.magnolia.rendering.engine.RenderingFilter...more specifically handleResourceRequest(...) method, no calls to response.setContentType(...) are made. I've compared headers between Magnolia 4.5.22 and 5.4.9 and in 4.5.22, I have the correct header info.

my GET request is something like this

http://localhost:8080/magnoliaAuthor/{path-to-component}/{image-node-name}.{ext}

Generated at Mon Feb 12 04:19:07 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.