[MGNLDEMO-328] Delivery endpoint responses are missing JSON contenttype, resulting in bad rendering Created: 19/Nov/19  Updated: 12/Apr/21

Status: Open
Project: Magnolia Demo Projects
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Christopher Zimmermann Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Relates
relates to MGNLREST-217 JSON response should be pretty printed Accepted
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
Epic Link: Headless Backlog

 Description   

Our live demo project (for example: https://demopublic.magnolia-cms.com/.rest/delivery/tours/v1/magnolia-travels/A-Taste-of-Malaysia)

Does not render properly in some browsers, such as Firefox. Possibly because it appears to miss the content type header.

Content-Type application/json;charset=UTF-8

It should render properly in Firefox, and it should include that content-type header. 

You can see how it should be rendered (and used to be rendered) in our Getting Started documentation. See the "REST result" column:

https://documentation.magnolia-cms.com/display/DOCS57/Getting+started+with+REST

Note:

On November 18, 2019 6.2 snapshot CE demo bundle running locally on HTTP I do see the contenttype header, and it does render properly in Firefox.

So I think the problem may be just with configuration of demopublic server. (CORS or content security issue?)

This is important because "Headless" usage of magnolia is increasing and checking out our public demo is part of the evaluation path. The current display is un-professional and will discourage an evaluator.


Generated at Mon Feb 12 05:18:35 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.