Skip Menu |

This queue is for tickets about the Catalyst-Runtime CPAN distribution.

Report information
The Basics
Id: 58048
Status: resolved
Priority: 0/
Queue: Catalyst-Runtime

People
Owner: EDENC [...] cpan.org
Requestors: AJGB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Overriden create_action applies roles to actions defined in Catalyst::Controller
Hi, I've reported that on #catalyst and got it fixed at github, so I'm reporting it here just to make sure it's not lost. Summary: when Catalyst::Controller::ActionRole::create_action is called it applies all roles defined via __PACKAGE__->config( action_roles => [qw(...)] ) to /^_(DISPATCH|BEGIN|AUTO|ACTION|END)$/ defined in Catalyst::Controller that causes the Catalyst::ActionRole::* modules to have their around 'execute' => sub {} called for mentioned above as well Failing tests are at: http://github.com/ajgb/catalyst-controller-actionrole/commit/358f5791935f1efd06b9ea6bed7b3792448463fc I've got that fixed by skipping applying roles to actions mentioned above - commits in my fork up to c0864d868e8cf634a4f8e2d1aa7a6d9ded556716. After talking to t0m on #catalyst I've started to turn the Catalyst::Controller::ActionRole into Catalyst::TraitFor::Controller::ActionRole and making the previous obsolete, but still working: http://github.com/ajgb/catalyst-controller-actionrole (Which is a merge of the as_trait branch into master). When it was done I've talked with rafl on #catalyst to see it reviewed/applied and it lead to conclusion that ActionRole functionality actually should be a part of core Catalyst::Controller. Cheers, Alex
On 2010-06-02 03:26:29, AJGB wrote: Show quoted text
> Hi, > > I've reported that on #catalyst and got it fixed at github, so I'm > reporting it here just to make sure it's not lost.
... Show quoted text
> When it was done I've talked with rafl on #catalyst to see it > reviewed/applied and it lead to conclusion that ActionRole > functionality > actually should be a part of core Catalyst::Controller.
This distribution has been deprecated now that the functionality is now in Catalyst::Controller, so any lingering issues belong to Catalyst-Runtime. I've moved this ticket to that queue.
looks like this fix is part of Catlyst::Controller. If you are still using the stand alone controller role you can just stop :) -jnap On Sun Feb 01 22:02:21 2015, ETHER wrote: Show quoted text
> On 2010-06-02 03:26:29, AJGB wrote:
> > Hi, > > > > I've reported that on #catalyst and got it fixed at github, so I'm > > reporting it here just to make sure it's not lost.
> ... >
> > When it was done I've talked with rafl on #catalyst to see it > > reviewed/applied and it lead to conclusion that ActionRole > > functionality > > actually should be a part of core Catalyst::Controller.
> > This distribution has been deprecated now that the functionality is now > in Catalyst::Controller, so any lingering issues belong to Catalyst-Runtime. > I've moved this ticket to that queue.