Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-3012

Setting the content type when using a freemarker template has no effect.

    XMLWordPrintable

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

          Activity

            People

              Unassigned Unassigned
              evanegmond Erik van Egmond (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: