standard_error_template dtml method does not render properly when errors occur
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Normally, when you try to visit a URL that is not mapped to any object in zope you get an error message like this, I'll copy and paste the html code in from "view-source" in my browser:
<html>
<head>
<body bgcolor="#FFFFFF">
<p>An error was encountered while publishing this resource.
</p>
<p><strong>
Sorry, the requested resource does not exist.<p>Check the URL and try again.<
<hr noshade="noshade"/>
<p>Troublesho
<ul>
<li>The URL may be incorrect.</li>
<li>The parameters passed to this resource may be incorrect.</li>
<li>A resource that this resource relies on may be
encountering an error.</li>
</ul>
<p>For more detailed information about the error, please
refer to the error log.
</p>
<p>If the error persists please contact the site maintainer.
Thank you for your patience.
</p>
</body>
</html>
What do I get in Zope2 (2.13.24)? Well, let's do the same thing:
<html>
<head>
<body bgcolor="#FFFFFF">
<h2>Site Error</h2>
<p>An error was encountered while publishing this resource.
</p>
<p&
Sorry, the requested resource does not exist.&
GET</p>
<hr noshade=
<p&
<ul>
<li>The URL may be incorrect.
<li>The parameters passed to this resource may be incorrect.
<li>A resource that this resource relies on may be
encountering an error.</li>
</ul>
<p>For more detailed information about the error, please
refer to the error log.
</p>
<p>If the error persists please contact the site maintainer.
Thank you for your patience.
</p>
</body>
</html>
What does that render as? Well something vaguely resembling the html code the DTML document is supposed to produce. Surely that's not what's supposed to happen.
The zope2 project on Launchpad has been archived at the request of the Zope developers (see https:/ /answers. launchpad. net/launchpad/ +question/ 683589 and https:/ /answers. launchpad. net/launchpad/ +question/ 685285). If this bug is still relevant, please refile it at https:/ /github. com/zopefoundat ion/zope2.