Re: [Zope] ERROR(200) SiteError http://localhost/manage_workspace
Hi Chris,
What's the problem here? This redirect looks like its supposed to be raised... If you see the code: if m.find('/'): ----raise Redirect, ( --------"%s/%s" % (REQUEST['URL1'], m))
m.find('/') will be always true, It doesn't matter if either "m" has or not an slash. (Just try it on the python console). So what's the purpose of this exception? Why must it always raised? Or is perhaps an error on the code?
Well, if the code has always been there, and it's only just started causing you problems, the nyou need >to figure otu what else you changed to make it cause problems ;-) You were right, The "Redirect" exception type wasn't on the Ignored exception types of my error_log. So, I got that exception always on my log file because m.find('/') is always true.
Regards, Josef _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail
Josef Albert Meile wrote:
You were right, The "Redirect" exception type wasn't on the Ignored exception types of my error_log. So, I got that exception always on my log file because m.find('/') is always true.
I'm pretty sure the "Redirect" exception type isn't in any of my ignroed type lists either :-S When did that exception type come into common use? cheers, Chris
From: "Chris Withers" <lists@simplistix.co.uk> To: "Josef Albert Meile" <jmeile@hotmail.com> Cc: <zope@zope.org> Sent: Tuesday, March 02, 2004 3:34 PM Subject: Re: [Zope] ERROR(200) SiteError http://localhost/manage_workspace
Josef Albert Meile wrote:
You were right, The "Redirect" exception type wasn't on the Ignored exception types of my error_log. So, I got that exception always on my log file because m.find('/') is always true.
I'm pretty sure the "Redirect" exception type isn't in any of my ignroed type lists either :-S When did that exception type come into common use? Actually I checked a fresh install of Zope 2.7.0 and it comes by default. If you just remove it from there, and you check "Copy exceptions to the event log", then you will see one on your log file each time you hit something on the ZMI.
regards, Josef
Chris Withers wrote at 2004-3-2 14:34 +0000:
... I'm pretty sure the "Redirect" exception type isn't in any of my ignroed type lists either :-S When did that exception type come into common use?
Zope has weird code in its "Zope.App.startup.zpublisher_exception_hook": It treats the "Redirect" and "Unauthorized" exceptions differently dependent on wheather they arrive as string (not handled by "error_log") or class (handled by "error_log") exceptions. I think this is a bug. It will more and more show up when more exception raises are converted from string to class exceptions.... -- Dieter
Josef Albert Meile wrote at 2004-3-2 09:48 +0100:
What's the problem here? This redirect looks like its supposed to be raised... If you see the code: if m.find('/'): ----raise Redirect, ( --------"%s/%s" % (REQUEST['URL1'], m))
m.find('/') will be always true,
Always, unless "m" starts with a "/". -- Dieter
participants (4)
-
Chris Withers -
Dieter Maurer -
Josef Albert Meile -
Josef Meile