Ticket #13846 (new Bug)
Opened 2 years ago
KSS Usage in default_error_template.pt causes issues
Reported by: | eamon@… | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | 4.x |
Component: | Unknown | Version: | 4.2 |
Keywords: | Cc: |
Description
I'm running Plone 4.2.5. In default_error_template.pt (see https://github.com/plone/Products.CMFPlone/blob/master/Products/CMFPlone/skins/plone_templates/default_error_message.pt), there is a section at the bottom that invokes KSS.
<tal:ksserrors tal:define="kss_view kss_view | context/@@kss_view | nothing; dummy python: kss_view and kss_view.attach_error(err_type, err_value);"/>
To the best of my knowledge, KSS has been removed from the version of Plone that I am using.
The issue arises when viewing a 404 page that has not been customized. We use the standard Plone 404 pages, which attempt to invoke this KSS. When KSS does not exist, the headers are filled with a bunch of garbage:
X-Ksscommands: <?xml version="1.0"?> <kukit xmlns="http://www.kukit.org/commands/1.1"> <commands> <command name="error"> <param name="type">system</param> <param name="message">NotFound: &lt;html lang="en-us" xml:lang="en-us" xmlns="http://www.w3.org/1999/xhtml"&gt;&lt;head&gt; &lt;meta content="text/html; charset=UTF-8" http-equiv="Content-Type"&gt;
That garbage appears to be Plone trying to render another 404 within the X-Ksscommands header.