[MGNLIMG-171] Set contentType correctly in ImagingServlet Created: 08/Sep/15  Updated: 05/Feb/16  Resolved: 15/Sep/15

Status: Closed
Project: Imaging
Component/s: None
Affects Version/s: None
Fix Version/s: 3.1.5, 3.1.5-java7, 3.2.3

Type: New Feature Priority: Neutral
Reporter: Robert Šiška Assignee: Robert Šiška
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: 0d
Time Spent: 0.25d
Original Estimate: Not Specified

Issue Links:
Relates
relates to MGNLIMG-177 CachingImageStreamer might store inco... Closed
dependency
is depended upon by MAGNOLIA-6348 Crosscheck mime type of the response ... Closed
Template:
Acceptance criteria:
Empty
Epic Link: contentTypeCheck
Sprint: Kromeriz 11
Story Points: 1

 Description   

Right now ImagingServlet sets up the ContentType, but it creates invalid types for some formats.

E.g. image/jpg should be image/jpeg.

The fix involves checking configured mime mapping in config:/server/MIMEMapping via MIMEMapping.getMIMEType(String).


Generated at Mon Feb 12 02:12:59 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.