[Catalyst] Returning false in auto action

Ian Barwick barwick at gmail.com
Tue May 24 05:48:05 CEST 2005


Hi,

I'm experiencing the same problem described here:
http://lists.rawmode.org/pipermail/catalyst/2005-May/000421.html

i.e. attempting to break out of a processing chain by returning 0
in an 'auto' action doesn't seem to be working. I'm using release
5.20 on Perl 5.8.1.

>From the server log:

.=-----------------------------------------------------------------+----------=.
| Action                                                           | Time      |
|=-----------------------------------------------------------------+----------=|
| -> APP->begin                                                    | 0.103031s |
| /admin/begin                                                     | 0.104291s |
| /admin/auto                                                      | 0.000062s |
| /admin/templates/view                                            | 0.000173s |
| -> APP::V::Display->process                                      | 0.041413s |
| /end                                                             | 0.042110s |
'=-----------------------------------------------------------------+----------='

"/admin/templates/view" shouldn't be called here as the preceding
auto section returns 0.

The mail referenced above indicates this is a bug which has been fixed, 
and the changelog (
http://maypole.perl.org/repos/Catalyst/trunk/Catalyst/Changes )
implies the change is in 5.20 ("fixed auto actions").

Can anyone shed any light on this?

Thanks

Ian Barwick
barwick at gmail.com



More information about the Catalyst mailing list