Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Won't Fix
-
2.26.10, 2.28.00
-
None
-
None
-
None
Description
When in the doBeforeRender the contentType is set and the template is a freemarker template.
Reproduced in the archetype, version 1.07.08 and 1.09.00.
To reproduce:
Create a component that does nothing else than
response.setContentType("application/xml");
in the doBeforeRender
Then build and start the project.
In the configuration make a sitemap item that uses this component.
Add a ftl template that the component uses containing a ftl script that contains xml.
Load the page in the web browser and check the content type.
Observed result: text/html
Expected result: application/xml
Attachments
Issue Links
- relates to
-
HIPPLUG-858 XML-feed created by sitemap.xml plugin isn't marked as XML
- Closed
-
HIPPLUG-887 SItemap plugin: proper fix for HIPPLUG-858: XML-feed created by sitemap.xml plugin isn't marked as XML
- Closed