Ticket #405 (closed defect: fixed)

Opened 5 years ago

Last modified 5 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:
Hardware: Operating system:
Product: URL:


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/	/

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

comment:1 Changed 5 years ago by work@…

reltime issue fixed in the study wizard in r1779


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

for text output, and

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

for JSON output

comment:2 Changed 5 years ago by work@…

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