standard_error_template dtml method does not render properly when errors occur

Bug #1554880 reported by pseudonomous
6
This bug affects 1 person
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><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">

   &lt;h2&gt;Site Error&lt;/h2&gt;
  &lt;p&gt;An error was encountered while publishing this resource.
  &lt;/p&gt;
  &lt;p&gt;&lt;strong&gt;Resource not found&lt;/strong&gt;&lt;/p&gt;

  Sorry, the requested resource does not exist.&lt;p&gt;Check the URL and try again.&lt;/p&gt;&lt;p&gt;&lt;b&gt;Resource:&lt;/b&gt; oops
GET&lt;/p&gt;
  &lt;hr noshade="noshade"/&gt;

  &lt;p&gt;Troubleshooting Suggestions&lt;/p&gt;

  &lt;ul&gt;
  &lt;li&gt;The URL may be incorrect.&lt;/li&gt;
  &lt;li&gt;The parameters passed to this resource may be incorrect.&lt;/li&gt;
  &lt;li&gt;A resource that this resource relies on may be
      encountering an error.&lt;/li&gt;
  &lt;/ul&gt;

  &lt;p&gt;For more detailed information about the error, please
  refer to the error log.
  &lt;/p&gt;

  &lt;p&gt;If the error persists please contact the site maintainer.
  Thank you for your patience.
  &lt;/p&gt;

  </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.

Revision history for this message
Colin Watson (cjwatson) wrote :

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/zopefoundation/zope2.

Changed in zope2:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.