standard_error_message wired variable expansion
Hello, i installed my own standard_error_message and it works fine so far. I found that in case of a "NotFound" error the AUTHENTICATED_USER is lost. But what is worse is, that I can not display error_value. error_type is 'NotFound' and I can display it, but if display error_value the Zope default error message (<table ...) is shown. Please find an example output below, here is the code <dtml-var error_type> <dtml-var error_value> Any ideas how to display a correct error message? Even when I display error_tb some variable will expand to this ridiculous html table. Thanks Ulrich NotFound <TABLE BORDER="0" WIDTH="100%"> <TR VALIGN="TOP"> <TD WIDTH="10%" ALIGN="CENTER"> </TD> <TD WIDTH="90%"> <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> z GET</p> <HR 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 HTML source for this page. </P> <P>If the error persists please contact the site maintainer. Thank you for your patience. </P> </TD></TR> </TABLE>
Ulrich Wisser writes:
i installed my own standard_error_message and it works fine so far. I found that in case of a "NotFound" error the AUTHENTICATED_USER is lost. It is not lost. Instead, it is not yet determined:
Authentication happens only at the very end of (a successful) traversal. It does not happen, when the traversal is aborted due to any error, e.g. a "Not found" error.
But what is worse is, that I can not display error_value. error_type is 'NotFound' and I can display it, but if display error_value the Zope default error message (<table ...) is shown. Please find an example output below, here is the code
<dtml-var error_type> <dtml-var error_value> Apparently, the code in "ZPublishers" traversal does not provide this information.
Use "<dtml-var error_value missing>". Dieter
participants (2)
-
Dieter Maurer -
Ulrich Wisser