Skip Menu |
 

This queue is for tickets about the Catalyst-Runtime CPAN distribution.

Report information
The Basics
Id: 60613
Status: new
Priority: 0/
Queue: Catalyst-Runtime

People
Owner: Nobody in particular
Requestors: nonsolosoft [...] diff.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Download (untitled) / with headers
text/plain 2.4k
(12:14:56) ferz: and I would expect to see /account/id_account to execute /account/account action (12:15:56) t0m: ferz: I don't see how account_base is both an endpoint and a midpoint, that won't work (12:16:24) t0m: in fact, I'm surprised it doesn't blow up, and I'd consider the fact that app starts at all a bug (12:17:00) ferz: account_base should be only a midpoint (12:17:25) t0m: not in that table (12:17:54) ferz: t0m: yes, I've reported table too as well as sources (12:18:46) shadowpaste: "t0m" at 217.168.150.38 pasted "| /account/* | /setup (0) | |" (19 lines) at http://paste.scsys.co.uk/48846 (12:22:29) ferz: but account_base is defined as sub account_base : Chained('/setup') PathPart('account') CapturedArgs(0) { } (12:22:42) t0m: CapturedArgs (12:22:46) t0m: ne CaptureArgs (12:22:54) ferz: ah, sorry. (12:23:38) ferz: my mistake, thank you. (12:23:41) t0m: np, please report a bug with the 3 account chains from the dispatch table and the code for the attributes of the 3 methods. (12:23:55) t0m: No problem. Catalyst should shout that it's wrong louder :) (12:24:19) t0m: As it's building a dispatch table which makes no sense, and won't work like you expect [debug] Loaded Chained actions: .-------------------------------------+--------------------------------------. | Path Spec | Private | +-------------------------------------+--------------------------------------+ | /account/* | /setup (0) | | | -> /account/account_base | | | => /account/account | | /account/... | /setup (0) | | | => /account/account_base | | /account | /setup (0) | | | => /account/no_account | sub no_account : Chained('/setup') PathPart('account') Args(0) { my($self,$c) = @_; $c->response->body( "New account o login" ); } sub account_base : Chained('/setup') PathPart('account') CapturedArgs(0) { my($self,$c) = @_; $c->log->debug( sprintf "%s:%d %s", __PACKAGE__ . __LINE__, "Account"); } sub account : Chained('/account/account_base') PathPart('') Args(1) { my($self,$c,$acc) = @_; $c->response->body( "This is account $acc" ); }


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.