[zope2-tracker] [Bug 1554880] [NEW] standard_error_template dtml method does not render properly when errors occur
pseudonomous
1554880 at bugs.launchpad.net
Wed Mar 9 05:21:40 CET 2016
Public bug reported:
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><title>MSCS</title></head>
<body bgcolor="#FFFFFF">
<h2>Site Error</h2>
<p>An error was encountered while publishing this resource.
</p>
<p><strong>Resource not found</strong></p>
Sorry, the requested resource does not exist.<p>Check the URL and try again.</p><p><b>Resource:</b> http://www.math.uic.edu/man</p>
<hr noshade="noshade"/>
<p>Troubleshooting Suggestions</p>
<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><title>Zope</title></head>
<body bgcolor="#FFFFFF">
<h2>Site Error</h2>
<p>An error was encountered while publishing this resource.
</p>
<p><strong>Resource not found</strong></p>
Sorry, the requested resource does not exist.<p>Check the URL and try again.</p><p><b>Resource:</b> oops
GET</p>
<hr noshade="noshade"/>
<p>Troubleshooting Suggestions</p>
<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 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.
** Affects: zope2
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.
https://bugs.launchpad.net/bugs/1554880
Title:
standard_error_template dtml method does not render properly when
errors occur
To manage notifications about this bug go to:
https://bugs.launchpad.net/zope2/+bug/1554880/+subscriptions
More information about the zope2-tracker
mailing list