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

XML-feed created by sitemap.xml plugin isn't marked as XML

    XMLWordPrintable

Details

    Description

      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
              tjeger Tobias Jeger
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: