Ticket #405 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

'responses' should define a proper content type

Reported by: work@… Owned by: work@…
Priority: major Milestone: Must have
Component: Core Functionality Version: 0.7.0
Keywords: Cc:
Product: Operating system:
URL: Hardware:

Description

In a lot of places responses are being used, however most of them do not set a proper content type. If the content type is not set, the apache virtual host directive:

		<Location />
			SetOutputFilter proxy-html
			ProxyHTMLURLMap /gscf-0.7.0-ci/	/
		</Location>

will encapsulate the response in

<html><body>the response</html></body>

so, every response (both in gscf as well as in depending plugins) should use response headers, e.g.

		response.setContentType("text/xml; charset=UTF-8")

or in a view:

<% response.contentType = "text/javascript" %>

Change History

Changed 3 years ago by work@…

reltime issue fixed in the study wizard in r1779

examples:

response.setContentType("text/plain; charset=UTF-8")

for text output, and

response.setContentType("application/json; charset=UTF-8")

for JSON output

Changed 3 years ago by work@…

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.