[MGNLIMG-177] CachingImageStreamer might store incorrect jcr:mimeType Created: 23/Nov/15 Updated: 15/Feb/16 Resolved: 08/Feb/16 |
|
| Status: | Closed |
| Project: | Imaging |
| Component/s: | None |
| Affects Version/s: | 3.2.4 |
| Fix Version/s: | 3.2.5 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Richard Unger | Assignee: | Bradley Andersen |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | support | ||
| Remaining Estimate: | 0d | ||
| Time Spent: | 3h | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| 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
|
||||||||||||||||||||||||
| Date of First Response: | |||||||||||||||||||||||||
| Sprint: | Basel 30 | ||||||||||||||||||||||||
| Story Points: | 5 | ||||||||||||||||||||||||
| Description |
|
DefaultImageGenerator and ImagingServlet (line ~98) used to hard-code the mime-type based on the imaging variation "outputFormat", which in many situations equals the filename extension: // we need to set mimetype here explicitly because extension (and type) is determined at runtime depending on what the image op chain does response.setContentType("image/" + outputFormat); This was not correct, in particular for the extension "jpg" (a valid file extension for JPEGs) the resulting mime-type image/jpg is not the correct mime-type for JPEGs* (which needs to be image/jpeg). Fix of
|