[Catalyst-dev] A forwarding detach within auto continues processing

Ton Voon tonvoon at gmail.com
Wed May 4 16:41:23 GMT 2011


In my app, I have an auto action which forwards to another location to do some common work. In this forwarded action, a $c->detach("/soft_error") is run if a known error condition has occurred.

However, it seems that running the detach from an auto doesn't stop further processing as Catalyst continues the dispatch.

I've attached a testcase (diff off 5.80032) to demonstrate the issue. I've updated t/aggregate/live_component_controller_action_auto.t and created a new test controller Detach.pm.

If I run $c->detach from the forwarded action, this seems to be fine. It is only if I pass an action to detach that the problem occurs. And only if run from auto.

Is this correct behaviour or have I found a bug?


-------------- next part --------------
A non-text attachment was scrubbed...
Name: detach_from_forwarded_auto_continues_processing.diff
Type: application/octet-stream
Size: 4188 bytes
Desc: not available
Url : http://lists.scsys.co.uk/pipermail/catalyst-dev/attachments/20110504/61cd25d1/detach_from_forwarded_auto_continues_processing.obj

More information about the Catalyst-dev mailing list