[Catalyst] strange behaviour when controllers are being inherited
Alex Pavlovic
alex at taskforce-1.com
Thu Jul 20 01:55:48 CEST 2006
Hi,
I just found something odd when trying to inherit from a base controller. I
attached the complete application and debug output. From the debug output you
can clearly see that "MyApp powered by Catalyst" as well as other things
appear 4 times in the output and are being duplicated. This caused some
concern.
Please note that this only appears when running under fastcgi environment and
lighttpd, I haven't tested the apache and standalone server does not seem to
be affected.
My layout is as follows:
MyApp::Controller::Root
MyApp::Controller::Welcome
MyApp::Controller::Welcome::User ( inherits from MyApp::Controller::Welcome )
Versions of catalyst that I found affected: 5.69/5.7
Thank you.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MyApp.tar.gz
Type: application/x-tgz
Size: 3242 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060719/4494bb61/attachment.bin
-------------- next part --------------
[debug] Debug messages enabled
[debug] Loaded plugins:
.----------------------------------------------------------------------------.
| Catalyst::Plugin::ConfigLoader 0.11 |
| Catalyst::Plugin::Static::Simple 0.14 |
'----------------------------------------------------------------------------'
[debug] Loaded dispatcher "Catalyst::Dispatcher"
[debug] Loaded engine "Catalyst::Engine::FastCGI"
[debug] Found home "/usr/home/alex/svn/node3.grid0/sites/myapp.com/MyApp"
[debug] Loaded Config "/usr/home/alex/svn/node3.grid0/sites/myapp.com/MyApp/myapp.yml"
[debug] Loaded components:
.-----------------------------------------------------------------+----------.
| Class | Type |
+-----------------------------------------------------------------+----------+
| MyApp::Controller::Root | instance |
| MyApp::Controller::Welcome
| instance |
| MyApp::Controller::Welcome::User | instance |
'-----------------------------------------------------------------+----------'
[debug] Loaded Private actions:
.----------------------+--------------------------------------+--------------.
| Private | Class | Method |
+----------------------+--------------------------------------+--------------+
| /default | MyApp::Controller::Root | default |
| /end | MyApp::Controller::Root | end |
| /welcome/default | MyApp::Controller::Welcome | default |
| /welcome/user/defau- | MyApp::Controller::Welcome::User | default |
| lt | | |
'----------------------+--------------------------------------+--------------'
[info] MyApp powered by Catalyst 5.7000
[debug] Debug messages enabled
[debug] Loaded plugins:
.----------------------------------------------------------------------------.
| Catalyst::Plugin::ConfigLoader 0.11 |
| Catalyst::Plugin::Static::Simple 0.14 |
'----------------------------------------------------------------------------'
[debug] Loaded dispatcher "Catalyst::Dispatcher"
[debug] Loaded engine "Catalyst::Engine::FastCGI"
[debug] Found home "/usr/home/alex/svn/node3.grid0/sites/myapp.com/MyApp"
[debug] Loaded Config "/usr/home/alex/svn/node3.grid0/sites/myapp.com/MyApp/myapp.yml"
[debug] Loaded components:
.-----------------------------------------------------------------+----------.
| Class | Type |
+-----------------------------------------------------------------+----------+
| MyApp::Controller::Root | instance |
| MyApp::Controller::Welcome | instance |
| MyApp::Controller::Welcome::User | instance |
'-----------------------------------------------------------------+----------'
[debug] Loaded Private actions:
.----------------------+--------------------------------------+--------------.
| Private | Class | Method |
+----------------------+--------------------------------------+--------------+
| /default | MyApp::Controller::Root | default |
| /end | MyApp::Controller::Root | end |
| /welcome/default | MyApp::Controller::Welcome | default |
| /welcome/user/defau- | MyApp::Controller::Welcome::User | default |
| lt | | |
'----------------------+--------------------------------------+--------------'
[info] MyApp powered by Catalyst 5.7000
[debug] Debug messages enabled
[debug] Loaded plugins:
.----------------------------------------------------------------------------.
| Catalyst::Plugin::ConfigLoader 0.11 |
| Catalyst::Plugin::Static::Simple 0.14 |
'----------------------------------------------------------------------------'
[debug] Loaded dispatcher "Catalyst::Dispatcher"
[debug] Loaded engine "Catalyst::Engine::FastCGI"
[debug] Found home "/usr/home/alex/svn/node3.grid0/sites/myapp.com/MyApp"
[debug] Loaded Config "/usr/home/alex/svn/node3.grid0/sites/myapp.com/MyApp/myapp.yml"
[debug] Loaded components:
.-----------------------------------------------------------------+----------.
| Class | Type |
+-----------------------------------------------------------------+----------+
| MyApp::Controller::Root | instance |
| MyApp::Controller::Welcome | instance |
| MyApp::Controller::Welcome::User | instance |
'-----------------------------------------------------------------+----------'
[debug] Loaded Private actions:
.----------------------+--------------------------------------+--------------.
| Private | Class | Method |
+----------------------+--------------------------------------+--------------+
| /default | MyApp::Controller::Root | default |
| /end | MyApp::Controller::Root | end |
| /welcome/default | MyApp::Controller::Welcome | default |
| /welcome/user/defau- | MyApp::Controller::Welcome::User | default |
| lt | | |
'----------------------+--------------------------------------+--------------'
[info] MyApp powered by Catalyst 5.7000
[debug] Debug messages enabled
[debug] Loaded plugins:
.----------------------------------------------------------------------------.
| Catalyst::Plugin::ConfigLoader 0.11 |
| Catalyst::Plugin::Static::Simple 0.14 |
'----------------------------------------------------------------------------'
[debug] Loaded dispatcher "Catalyst::Dispatcher"
[debug] Loaded engine "Catalyst::Engine::FastCGI"
[debug] Found home "/usr/home/alex/svn/node3.grid0/sites/myapp.com/MyApp"
[debug] Loaded Config "/usr/home/alex/svn/node3.grid0/sites/myapp.com/MyApp/myapp.yml"
[debug] Loaded components:
.-----------------------------------------------------------------+----------.
| Class | Type |
+-----------------------------------------------------------------+----------+
| MyApp::Controller::Root | instance |
| MyApp::Controller::Welcome | instance |
| MyApp::Controller::Welcome::User | instance |
'-----------------------------------------------------------------+----------'
[debug] Loaded Private actions:
.----------------------+--------------------------------------+--------------.
| Private | Class | Method |
+----------------------+--------------------------------------+--------------+
| /default | MyApp::Controller::Root | default |
| /end | MyApp::Controller::Root | end |
| /welcome/default | MyApp::Controller::Welcome | default |
| /welcome/user/defau- | MyApp::Controller::Welcome::User | default |
| lt | | |
'----------------------+--------------------------------------+--------------'
[info] MyApp powered by Catalyst 5.7000
More information about the Catalyst
mailing list