in reply to Catalyst controller comparison fails in Root controller auto()

Thanks for the suggestions.

I tried the following in place of directly comparing controllers.
  1. $self->action_namespace;
  2. $c->req->path;
  3. $c->action->attributes->{NoAuth} + :NoAuth

They all worked but I found using :NoAuth the most applicable to my situation: I have a very small number of actions to permit as not requiring an authenticated session and may wish to reorganize controllers and so want to avoid path dependencies.

Running catalyst with -r resulted in none of the funnies that prompted my original submission but then I did start and stop it a lot so even if there was a bug, it probably would not have gotten much chance to show itself.

Thanks, again

  • Comment on Re: Catalyst controller comparison fails in Root controller auto()