Uploaded image for project: '[Read Only] - Hippo Plugins'
  1. [Read Only] - Hippo Plugins
  2. HIPPLUG-887

SItemap plugin: proper fix for HIPPLUG-858: XML-feed created by sitemap.xml plugin isn't marked as XML

    XMLWordPrintable

Details

    Description

      – Worked around on HIPPLUG-858, waiting for HSTTWO-3012 to fix this one –

      – Original Issue –

      We recently added sitemap.xml v1.04.01 to a 7.8 project, and used the component org.onehippo.forge.sitemap.components.SitemapFeedBasedOnHstSitemap to create the XML feed. The response generated claims to be text/html, while it should be application/xml. We worked around it in the project by prefixing the FTL template with

      <#ftl attributes=

      {"content_type": "application/xml"}

      />

      but I guess this should really be addressed by the component, setting the response's content type:

      response.setContentType("application/xml");

      This probably applies to other components of that plugin as well.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              llemos Luís Pedro Lemos (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: