[Catalyst] Clash of the plugins: SubRequest vs Static::Simple
Andy Grundman
andy at hybridized.org
Wed Oct 5 00:29:04 CEST 2005
Johan Lindström wrote:
> I just bumped into a clash between the SubRequest and Static::Simple
> plugins.
>
> Separately, niiice. Together, SubRequest doesn't work properly anymore
> (I get undef) when I call it like this:
>
> $c->stash->{imagemap} = $c->subreq("/graph/imap");
>
> It seems like, in subreq() where $c->dispatch() is called, it calls the
> Static::Simple::dispatch, which correctly figures out it shouldn't
> handle the request so it calls "return $c->NEXT::dispatch(@_);", which
> fails to find any other method to call. So it never reaches the original
> Catalyst dispatch method.
>
> Does this sound like one (or both) of the plugins are misbehaving
> somehow, or is it simply not possible to combine plugins this way? Or
> did I just do something wrong?
>
>
> TIA,
>
> /J
>
> PS.
>
> It doesn't matter which order I have the two in my Catalyst app:
> use Catalyst qw/-Debug Static::Simple SubRequest Session::CGISession /;
> The Static::Simple::dispatch gets called either way.
I'll try to duplicate this and write a failing test for Static::Simple.
Just looking at the code, I can't see anything wrong, though.
-Andy
More information about the Catalyst
mailing list