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

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Won't Fix
    • Affects Version/s: 2.26.10, 2.28.00
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Similar issues:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: