[MAGNOLIA-3452] Content-type of a rendered page should not be a function of the request Created: 07/Dec/10 Updated: 25/Sep/15 Resolved: 25/Sep/15 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | templating |
| Affects Version/s: | 4.4.1 |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Magnolia International | Assignee: | Unassigned |
| Resolution: | Obsolete | Votes: | 2 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| 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)
|
||||||||||||||||||||||||
| Date of First Response: | |||||||||||||||||||||||||
| Description |
|
The Content-Type response header is currently a direct function of the extension in the request. Example: http://demopublic.magnolia-cms.com/demo-project/about.jpeg yields: Request URL:http://demopublic.magnolia-cms.com/demo-project/about.jpeg Request Method:GET Status Code:200 OK Request Headers Accept:application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 User-Agent:Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; en-us) AppleWebKit/533.18.1 (KHTML, like Gecko) Version/5.0.2 Safari/533.18.5 Response Headers Cache-Control:max-age=900 Connection:Keep-Alive Content-Length:16305 Content-Type:image/jpeg;charset=UTF-8 Date:Tue, 07 Dec 2010 09:54:07 GMT Keep-Alive:timeout=15, max=97 Last-Modified:Tue, 07 Dec 2010 09:54:07 GMT Server:Apache/2.2.14 (Ubuntu) X-Magnolia-Registration:Registered |
| Comments |
| Comment by Antti Hietala [ 24/Jan/11 ] |
|
Voting up and adding a symptom that is essentially the same issue. The Download button in DMS does not construct a URL with a file extension and therefore sets the wrong content type header. To reproduce:
If you open the file properties dialog instead and save the file with a right-click action it is saved correctly as .pdf. |