"be consistent" | |
PerlMonks |
Catalyst controller comparison fails in Root controller auto()by smallvaluesof2 (Novice) |
on Jan 10, 2009 at 23:10 UTC ( [id://735445]=perlquestion: print w/replies, xml ) | Need Help?? |
smallvaluesof2 has asked for the wisdom of the Perl Monks concerning the following question:
In lib/Controller/Root.pm I'm using a standard pattern
for automatically redirecting to a login controller
if a user is not logged in and the user is not running either the registration or login controllers.
lib/Controller/Root.pm
I am tweaking CSS/JS error handling and run the Register page repeatedly with deliberate input errors (empty input field etc). After a few cycles I modify the register controller or the appropriate template/form definition. After a while the above test fails even though I know (from Catalyst debug output) the Register controller is being invoked and control passes to the Login controller. Once this happens, it continues to happens until I restart Catalyst. Sometimes the same thing also happens to the login controller so Catalyst loops indefinitely redirecting to the login controller. I am running Catalyst with the -r option and have been modifying the the register controller. Is it possible that this is introducing some instability? I can't imagine that Catalyst would be so flaky in production so I can only assume that either the -r option introduces some instability (and I can live with that) or that I am somehow corrupting Catalyst by doing something dumb.Any thoughts appreciated. Using Catalyst 5.7014/ CGI::FormBuilder 3.0501 / Ubuntu 8.10 on a dedicated development VM. Running catalyst with the -r option
Back to
Seekers of Perl Wisdom
|
|