[Catalyst] Re: Catalyst::Controller bug when parsing attributes (with patch)

Seth Daniel catalyst at sethdaniel.org
Fri Feb 4 19:01:11 GMT 2011

On Thu, Feb 03, 2011 at 09:15:03AM -0800, Seth Daniel wrote:
> Hi,
> I believe I've discovered a bug in Catalyst::Controller.  I triggered it 
> while using Catalyst::Controller::ActionRole so my examples below will
> refer to that module. 


> I can probably provide a program that demonstrates this, but I've found
> that writing a 'simple' Catalyst application requires a lot of setup. :o/


I whittled down the Catalyst::Controller::ActionRole tests to as few
files as I could.  

Unpack the tar file and cd to the 't' dir.

Run 'prove execution-via-config.t'.  It should fail with the bug I

You can get the test to pass if you change
t/lib/TestApp/Controller/ExecutionViaConfig.pm to apply the '+Moo' role
like so:  

  action => {
    three => { Does => '+Moo' }

seth /\ sethdaniel.org

More information about the Catalyst mailing list