[MAGNOLIA-3684] removing the value in defaultExtension results in responses without proper content-type header Created: 10/May/11 Updated: 16/Jan/12 Resolved: 13/Jan/12 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | None |
| Affects Version/s: | 4.4.2 |
| Fix Version/s: | 4.4.6, 4.5 |
| Type: | Bug | Priority: | Neutral |
| Reporter: | Tomas Brimor | Assignee: | Ondrej Chytil |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||
| 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: | |||||||||||||
| Description |
|
Request URL: *** Request Headers Response Headers |
| Comments |
| Comment by Zdenek Skodik [ 16/Nov/11 ] |
|
The attached class fixes the issue. |
| Comment by Zdenek Skodik [ 10/Jan/12 ] |
|
Please add && StringUtils.isEmpty(extension) to the condition as well. |
| Comment by Jan Haderka [ 13/Jan/12 ] |
|
I'm not convinced. Wouldn't it be safer to check whether resolved mime type is not empty rather then whether default and current extensions are both empty? |
| Comment by Zdenek Skodik [ 13/Jan/12 ] |
|
It's doable indeed, if we want to force text/html for mime types not yet registered in Magnolia. |
| Comment by Ondrej Chytil [ 13/Jan/12 ] |
|
In 4.5 should be resolved by mime types - |