Catalyst isn't dispatching how I expected. A 'Login' controller has sub get_sess :Chained('/') :PathPart('login/id') :CaptureArgs(1) {..} sub audit_log :Chained('get_sess') :PathPart('audit_log') :Args(0) {..}
On startup, Catalyst reports the actions as expected, | /login/id/*/audit_log | /login/get_sess (1) | | => /login/audit_log But on requesting 'http://localhost:3000/login/id/124/audit_log' I see [debug] Path is "/" [debug] Arguments are "login/id/124/audit_log" and Catalyst calls the Root's default action. Why might it not have matched the Login actions? I'm using Catalyst 5.80033. Below are all the non-private actions reported on startup. [debug] Loaded Path actions: .-------------------------------------+--------------------------------------. | Path | Private | +-------------------------------------+--------------------------------------+ | / | /index | | /... | /default | | /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 | | /error_noperms | /error_noperms | | /login/id/*/audit_log | /login/get_sess (1) | | | => /login/audit_log | '-------------------------------------+--------------------------------------' -- Nick _______________________________________________ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/