Subject: | Chains not bailing out early enough. |
I have a Controller chain like the following:
sub base : Chained (/) PathPart('base') Does('RequireSSL') { die 'Base!' }
sub payment : Chained('base') Args(0) { die 'Payment' }
and I was expecting it to die with "Base", which it does *after* the first
request. The first request always dies with "Payment" (or in my
application with an obscure error because something populated in base
wasn't populated).
After some discussion on #catalyst on irc.perl.org I think it may need a
$c->detach after the redirect in the RequireSSL check.
I'm happy to try to come up with some failing tests and/or a patch for
this if you can point me at the current repository.