On 2011-09-06 17:33, Tomas Doran wrote:
> >>sub default : Chained('/') PathPart('') Args() {
> >
> >I made that change, but the default action still runs.
>
> New debug please?Sure, $ CATALYST_DEBUG=1 script/myapp_server.pl [debug] Debug messages enabled [debug] Statistics enabled [debug] Loaded plugins: .----------------------------------------------------------------------------. | Catalyst::Plugin::Authentication 0.10017 | | Catalyst::Plugin::Authorization::Roles 0.09 | | Catalyst::Plugin::ConfigLoader 0.30 | | Catalyst::Plugin::Session 0.31 | | Catalyst::Plugin::Session::State::Cookie 0.17 | | Catalyst::Plugin::Session::Store::DBI 0.16 | | Catalyst::Plugin::StackTrace 0.11 | '----------------------------------------------------------------------------' [debug] Loaded dispatcher "Catalyst::Dispatcher" [debug] Loaded engine "Catalyst::Engine::HTTP" [debug] Found home "/home/nick/catut/MyApp" [debug] Setting up auth realm default [debug] Loaded Config "/home/nick/catut/MyApp/myapp.conf" [debug] Loaded components: .-----------------------------------------------------------------+----------. | Class | Type | +-----------------------------------------------------------------+----------+ | MyApp::Controller::Books | instance | | MyApp::Controller::Login | instance | | MyApp::Controller::Logout | instance | | MyApp::Controller::Root | instance | | MyApp::Model::DB | instance | | MyApp::Model::DB::AppAction | class | | MyApp::Model::DB::AppRole | class | | MyApp::Model::DB::AppSession | class | | MyApp::Model::DB::AppUser | class | | MyApp::Model::DB::AppUserRole | class | | MyApp::Model::DB::Author | class | | MyApp::Model::DB::Book | class | | MyApp::Model::DB::BookAuthor | class | | MyApp::View::HTML | instance | '-----------------------------------------------------------------+----------' [debug] Loaded Private actions: .----------------------+--------------------------------------+--------------. | Private | Class | Method | +----------------------+--------------------------------------+--------------+ | /error_noperms | MyApp::Controller::Root | error_noper- | | | | ms | | /default | MyApp::Controller::Root | default | | /end | MyApp::Controller::Root | end | | /index | MyApp::Controller::Root | index | | /auto | MyApp::Controller::Root | auto | | /logout/index | MyApp::Controller::Logout | index | | /login/cheat2 | MyApp::Controller::Login | cheat2 | | /login/doit | MyApp::Controller::Login | doit | | /login/cheat1 | MyApp::Controller::Login | cheat1 | | /login/index | MyApp::Controller::Login | index | | /login/cheat | MyApp::Controller::Login | cheat | | /login/get_sess | MyApp::Controller::Login | get_sess | | /login/audit_log | MyApp::Controller::Login | audit_log | | /login/list | MyApp::Controller::Login | list | | /books/create | MyApp::Controller::Books | create | | /books/show | MyApp::Controller::Books | show | | /books/get_book_fro- | MyApp::Controller::Books | get_book_fr- | | m_db | | om_db | | /books/edit | MyApp::Controller::Books | edit | | /books/bmodel | MyApp::Controller::Books | bmodel | | /books/index | MyApp::Controller::Books | index | | /books/list_recent | MyApp::Controller::Books | list_recent | | /books/list_recent_- | MyApp::Controller::Books | list_recent- | | tcp | | _tcp | | /books/list | MyApp::Controller::Books | list | '----------------------+--------------------------------------+--------------' [debug] Loaded Path actions: .-------------------------------------+--------------------------------------. | Path | Private | +-------------------------------------+--------------------------------------+ | / | /index | | /books/ | /books/index | | /login/ | /login/index | | /login/cheat1/... | /login/cheat1 | | /login/cheat2/... | /login/cheat2 | | /login/doit/ | /login/doit | | /login/list/... | /login/list | | /logout/ | /logout/index | '-------------------------------------+--------------------------------------' [debug] Loaded Chained actions: .-------------------------------------+--------------------------------------. | Path Spec | Private | +-------------------------------------+--------------------------------------+ | /books/create | /books/bmodel (0) | | | => /books/create | | /books/id/*/edit | /books/bmodel (0) | | | -> /books/get_book_from_db (1) | | | => /books/edit | | /books/list | /books/bmodel (0) | | | => /books/list | | /books/list_recent/* | /books/bmodel (0) | | | => /books/list_recent | | /books/list_recent_tcp/* | /books/bmodel (0) | | | => /books/list_recent_tcp | | /books/id/*/show | /books/bmodel (0) | | | -> /books/get_book_from_db (1) | | | => /books/show | | /... | /default | | /error_noperms | /error_noperms | | /login/id/*/audit_log | /login/get_sess (1) | | | => /login/audit_log | '-------------------------------------+--------------------------------------' [info] Cyberpaper Publishing powered by Catalyst 5.80033 You can connect to your server at http://nickpad:3000 [info] *** Request 1 (0.200/s) [12860] [Tue Sep 6 17:49:23 2011] *** [debug] "GET" request for "login/id/124/audit_log" from "127.0.0.1" [debug] Path is "/default" [debug] Arguments are "login/id/124/audit_log" [debug] Found sessionid "206cdb272c616ed8051c35d2679f10f433ec5120" in cookie [debug] Restored session "206cdb272c616ed8051c35d2679f10f433ec5120" [debug] Response Code: 404; Content-Type: text/html; charset=utf-8; Content-Length: 37 [info] Request took 0.058598s (17.065/s) .------------------------------------------------------------+-----------. | Action | Time | +------------------------------------------------------------+-----------+ | /auto | 0.000959s | | /default | 0.000213s | | /end | 0.036199s | '------------------------------------------------------------+-----------' -- Nick _______________________________________________ List: [email protected] Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
