cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Björn Lütkemeier <>
Subject RE: Allow redirects inside error handling
Date Tue, 29 Apr 2003 12:47:55 GMT

> -----Original Message-----
> From: Nicola Ken Barozzi []
> Sent: Tuesday, April 29, 2003 2:28 PM
> To:
> Subject: Re: Allow redirects inside error handling
> I still think that this is bad, for the infinite error loop. And no, we
> should not make this possible, because errors can always occur in
> sitemaps, and infinite loops in a web server are really bad. Furthermore
> it also makes it easy to start using error handling for app flow , and
> it should *not* be it.
> As for the fact that redirects can be done in Actions, well, it should
> *not* be possible in handle-errors. It was a bug.
> Now that generators can be used, users can generate from another
> pipeline, and it's a forward, and include, not a redirect.
> Handle errors should not have a goto to external code. No gotos there,
> please.
> Why would you want a redirect now that generators are possible? I don't
> like redirects there, please remove this.
> I also think that redirects in Actions are equally bad, as only the
> sitemap and the flow should redirect, based on the results of the
> components. Redirects in code are a bad programming practice.

As far as I see the problem with infinite loops does not only occur in
conjunction with error handling. Even with normal pipelines you are able to
configure an infinite loop. Cocoon does not prevent you from doing so,
because as I said before it is your fault, not a bug in the system.
It is the same in Java: The Java language does not prevent you from
implementing infinite loops. When you do so, you made a mistake in your
program and have to fix it. Therefore I do not see any reason to allow
redirects anywhere in the sitemap, but forbid them in error handlers. This
would be a bad restriction that is not necessary at all in my opinion.

Regards, Björn.

View raw message