[ZCM] [ZC] 2222/ 3 Resolve "500 internal server error with ie"

"Collector: Zope Bugs, Features, and Patches ..." <[email protected]>
Newsgroups gmane.comp.web.zope.devel.collector-monitor
Message-ID <[email protected]>
Issue #2222 Update (Resolve) "500 internal server error with ie"
 Status Resolved, Zope/bug+solution medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/2222

==============================================================
= Resolve - Entry #3 by ajung on Jan 13, 2007 10:19 am

 Status: Pending => Resolved

Fixed according to the originator
________________________________________
= Comment - Entry #2 by knowit on Nov 24, 2006 6:35 am

this is bug is fixed in Zope 2.10.0
________________________________________
= Request - Entry #1 by knowit on Oct 24, 2006 5:28 am

hello, 

i got an 500 internal server error everytime when something is not correct programmed. e.g. ValueError, missing input
This error only occured with internet explorer - but on older zope versions it works fine. 

Here it does not work: 
http://donau.kicms.de/koba/Error500Test (Zope 2.9.4-final, python 2.4.4, linux2)

Here it works fine in standard installtion: 
http://biomarkt.kicms.de/bio-markt/Error500Test (Zope 2.6.4 (source release, python 2.1, linux2), python 2.2.3, linux2)

IE Version: 6.0.2800.1106 SP1 - Windows 2000 SP4

the sourcecode of the Error500Test: 
<dtml-with newslettertool>
 <dtml-call user_add_sql>
</dtml-with>

It´s an easy call to an zsql method - and there are no variables defined. So the real error message which should be displayed: Missing input variable, u_title (Works with firefox) 

My Fix:
there is no change to do on standard_error_message. I have made an crazy change on the standard_html_header - the original standard_html_header is: 
---
<html>
  <head><title>&dtml-title_or_id;</title></head>
  <body bgcolor="#FFFFFF">
---

- This one does NOT work. Now i make it like this: 

---
<html>
  <head><title>&dtml-title_or_id;</title></head>
  <body bgcolor="#FFFFFF">

<!-- 
################################################
################################################
################################################
################################################
################################################
################################################
################################################
################################################
################################################
################################################
################################################
################################################
################################################
################################################
################################################
################################################
################################################
################################################
-->

---
This one WORKS FINE - i dont understand why, but now i did not get any 500 internal server error on the internet explorer. I would be please if you can tell me why this crazy workaround works?

I now have set the workaround back to "not working" because of showing you the error.

==============================================================
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.