Re: [Catalyst] Please Help: Aborting a Catalyst request in auto method

2017-04-17 Thread Rajesh Kumar Mallah
Thanks for the Response., by default end is defined as: sub end : ActionClass('RenderView') {} It helped me to split it in 2 parts: sub end : Private { my ($self, $c) = @_; $c->forward('render') unless $c->res->output ; } sub render : ActionClass('RenderView') { }

Re: [Catalyst] Please Help: Aborting a Catalyst request in auto method

2017-04-16 Thread Gerhard Jungwirth
It looks okay actually, documentation: "If an |auto| action returns 0, any remaining actions will be skipped, except for |end|". It goes directly to end. You should restructure your code probably, so that the main handling doesn't happen in end. You can also use detach if you want. Also you

[Catalyst] Please Help: Aborting a Catalyst request in auto method

2017-04-15 Thread Rajesh Kumar Mallah
Hi , I want to return HTTP Status 401 along with a body indicating the friendly description from my auto method. so i have below in my auto: = sub auto :Private { my ( $self, $c ) = @_; my $path = $c->request->path ;