[Catalyst] Re: X-Forwarded-For
Bill Moseley [EMAIL PROTECTED] writes: On Tue, Apr 01, 2008 at 11:38:15PM -0400, Andy Grundman wrote: When using X-Forwarded-For you cannot trust any value that is not added by your own upstream proxy, so we only want to use the last value in the list. Ah, right. In this case I've got more than one proxy which that code doesn't expect. I can find a work-around. How about patching C::Engine::Apache to take a list of proxy IPs in its config and use the last IP in the header that is not among these? -- ilmari A disappointingly low fraction of the human race is, at any given time, on fire. - Stig Sandbeck Mathisen ___ 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/
Re: [Catalyst] Catalyst-Manual-FAQ Addition
Can I have that as a diff -u please then all other things being equal I'll apply it. On 31 Mar 2008, at 23:23, Russell Jurney wrote: Catalyst::Manual::FAQ looks like it was included in 5.5 and is seen at http://search.cpan.org/~sri/Catalyst-5.55/lib/Catalyst/Manual/ FAQ.pod I discovered that 'call' is a reserved word for Catalyst controllers, and any subroutines in a controller named 'call' will be ignored. So, attached is a patched Catalyst::Manual::FAQ indicating this condition. Russell Jurney [EMAIL PROTECTED] Catalyst-Manual-FAQ.pm ___ 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/ ___ 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/
[Catalyst] catalyst tutorial sample question about authorization
I'm reading the tutorial chapter 5 : Authorization I add some like this : [% IF Catalyst.check_user_roles('user') %] a href=[% Catalyst.uri_for('/logout') %]Logout/a [% END %] [% IF Catalyst.check_user_roles('admin') %] a href=[% Catalyst.uri_for('form_create') %]Create/a [% END %] and then login in a user who has user role but no admin role, it shows some error on browser: Here's the error message, on the off-chance that it means something to you: undef error - check_user_roles is undefined. if I use another user (admin user role) to login, it's ok. why? ___ 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/
Re: [Catalyst] Nested calls to model does not work?
On Tue, 1 Apr 2008, Alex Povolotsky wrote: Sorry for resending, looks like everyone able to answer overlooked this message. I'm researching the problem without much success. After 1 day?? What sort of support contract do you have? Hello! I've experienced strange problem displaying data. Minimal test case is fairly big, I can attach it here, but will try to extract most important information. Creating database (Pg) create table parent (pid serial primary key, name varchar(64)); create table child (cid serial primary key, pid int not null references parent(pid), name varchar(64)); create table record (rid serial primary key, cid int not null references child(cid), message varchar(64)); insert into parent (name) values('parent'); insert into child (pid, name) values (1, 'child'); insert into record (cid, message) values (1, 'message one'); insert into record (cid, message) values (1, 'message two'); creating model and view script/testcase_create.pl model Main DBIC::Schema Testcase::Schema create=static dbi:Pg:dbname=testcase testcase script/testcase_create.pl view Main TTSite in Root controller, writing trivial sub index : Local { my ( $self, $c ) = @_; $c-stash-{parent} = $c-model('Main::Parent')-search(); } in index template, everything is trivial as well [% META title = 'index' %] ul [% WHILE (p = parent.next) %] parent [% p.name %] has [% p.children.count %] children, This is TT. that .children is in list context, so .count will not be called (and TT will silently fail to tell you why) Try p.children_rs.count. ol [% WHILE (child = p.children.next) %] This will get you a new children list every time it loops so a) use children_rs to get a resultset, not a list, and b) take that value and stick it in a var, then call next on it. li [% child.name %] has [% child.records.count %] records, ul [% WHILE (record = child.records.next) %] Same again with child.records. li[% record.message %] [% END %] /ul [% END %] /ol [% END %] /ul Output is disappointing index parent parent has children, © 2008 Your Name Here while we get SELECT me.pid, me.name FROM parent me: SELECT me.cid, me.pid, me.name FROM child me WHERE ( me.pid = ? ): '1' SELECT me.cid, me.pid, me.name FROM child me WHERE ( me.pid = ? ): '1' with DBIC_TRACE. Attempt to dump (using Plugin::Dumper) p.children yields reasonable result. What am I doing wrong? Posting to the wrong list.. I would have seen this if it were on the dbix-class list.. OTOH, its a mix of TT, cat and DBIC so.. first you should have taken it apart a piece at a time, to figure at which stage the problem was. Then you would have found it yourself. Jess ___ 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/
Re: [Catalyst] Re: Catalyst-Manual-FAQ Addition
On Wed, 2 Apr 2008, Paul Makepeace wrote: On Mon, Mar 31, 2008 at 7:09 PM, Aristotle Pagaltzis [EMAIL PROTECTED] wrote: * Russell Jurney [EMAIL PROTECTED] [2008-03-31 14:30]: I discovered that 'call' is a reserved word for Catalyst controllers, and any subroutines in a controller named 'call' will be ignored. OK, but? So, we should attempt to inform other people that they might also stumble over this problem. So, attached is a patched Catalyst::Manual::FAQ indicating this condition. ? err, how is your question a frequently asked one? In my opinion the FAQ is for short'n'sweet 1-2 line answers to a) frequent questions and b) how to find stuff in the docs in general. This should probably also be in Manual::Intro, or wherever the official list of action types is (which imo should be in the manual alone, that should be supplimentary) .. There would be some good mileage out of Catalyst::Manual::Gotchas Only if people know to look there ;) Jess ___ 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/
Re: [Catalyst] Re: Catalyst-Manual-FAQ Addition
On Wed, Apr 2, 2008 at 1:41 PM, Jess Robinson [EMAIL PROTECTED] wrote: On Wed, 2 Apr 2008, Paul Makepeace wrote: On Mon, Mar 31, 2008 at 7:09 PM, Aristotle Pagaltzis [EMAIL PROTECTED] wrote: * Russell Jurney [EMAIL PROTECTED] [2008-03-31 14:30]: I discovered that 'call' is a reserved word for Catalyst controllers, and any subroutines in a controller named 'call' will be ignored. OK, but? So, we should attempt to inform other people that they might also stumble over this problem. So, attached is a patched Catalyst::Manual::FAQ indicating this condition. ? err, how is your question a frequently asked one? In my opinion the FAQ is for short'n'sweet 1-2 line answers to a) frequent questions and b) how to find stuff in the docs in general. This should probably also be in Manual::Intro, or wherever the official list of action types is (which imo should be in the manual alone, that should be supplimentary) .. There would be some good mileage out of Catalyst::Manual::Gotchas Only if people know to look there ;) Put it in the table of contents? ;) P Jess ___ 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/ ___ 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/
Re: [Catalyst] Re: Catalyst-Manual-FAQ Addition
Jess Robinson wrote: On Wed, 2 Apr 2008, Paul Makepeace wrote: On Mon, Mar 31, 2008 at 7:09 PM, Aristotle Pagaltzis [EMAIL PROTECTED] wrote: * Russell Jurney [EMAIL PROTECTED] [2008-03-31 14:30]: I discovered that 'call' is a reserved word for Catalyst controllers, and any subroutines in a controller named 'call' will be ignored. OK, but? So, we should attempt to inform other people that they might also stumble over this problem. So, attached is a patched Catalyst::Manual::FAQ indicating this condition. ? err, how is your question a frequently asked one? In my opinion the FAQ is for short'n'sweet 1-2 line answers to a) frequent questions and b) how to find stuff in the docs in general. This should probably also be in Manual::Intro, or wherever the official list of action types is (which imo should be in the manual alone, that should be supplimentary) .. There would be some good mileage out of Catalyst::Manual::Gotchas Only if people know to look there ;) You could always refer to Catalyst::Manual::Gotchas in the FAQ ;) Jess ___ 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/ ___ 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/
Re: [Catalyst] Re: X-Forwarded-For
On Wed, Apr 02, 2008 at 11:45:59AM +0100, Dagfinn Ilmari Mannsåker wrote: Bill Moseley [EMAIL PROTECTED] writes: On Tue, Apr 01, 2008 at 11:38:15PM -0400, Andy Grundman wrote: When using X-Forwarded-For you cannot trust any value that is not added by your own upstream proxy, so we only want to use the last value in the list. Ah, right. In this case I've got more than one proxy which that code doesn't expect. I can find a work-around. How about patching C::Engine::Apache to take a list of proxy IPs in its config and use the last IP in the header that is not among these? Yes, that's probably the best solution. For now I need to fix-up the proxy headers for use with Perlbal anyway, so I'll just override prepare_headers and update $c-req-address there. But speaking of patching, there's this bit of code to not include the default port: if ( $port != 80 $host !~ /:/ ) { $host .= :$port; } What about the same for 443 and https? Most browsers will remove the default port, so not a huge issue. But, something like: unless ( $host =~ /:/ ) { $host .= :$port if ( $c-req-secure $port != 443 ) || ( !$c-req-secure $port != 80 ) } -- Bill Moseley [EMAIL PROTECTED] ___ 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/
Re: [Catalyst] CatalystSites.org
Hallo Ulrich, ich habe, dein Einverständnis vorausgesetzt, unsere pspf-app mal auf der unten genannten Seite veröffentlicht. http://drs.dife.de/ könnte dort doch auch gelistet werden? Wollen wir uns bei Gelegenheit mal wieder treffen? bis bald - ulf. Stephen Sykes schrieb: Hello Friends, For the past few days I have been putting together a site for listings of websites driven by the Catalyst MVC framework. The site idea was born out of a discussion on the list here a few weeks ago regarding a lack of any definitive list of sites based on the Catalyst MVC framework. Well, today I would like to announce the site launch. I hope everyone finds the site to their liking and can find the time to register and post their Catalyst driven websites. Note: I am also planning to release the source code for the site via subversion/trac as soon as I get a couple more admin features finished. So if anyone is interested in helping with the site code we can do this under version control, a sort of community driven project if you will. URL: http://www.catalystsites.org Kind Regards, Stephen Sykes ___ 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/ begin:vcard fn:Dr. Ulf Lenski n:Lenski;Ulf email;internet:[EMAIL PROTECTED] tel;work:030 9406 2983 tel;fax:030 9406 2925 x-mozilla-html:FALSE url:http://www.proteinstrukturfabrik.de/~lenski version:2.1 end:vcard ___ 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/
[Catalyst] Re: Catalyst-Manual-FAQ Addition
* Paul Makepeace [EMAIL PROTECTED] [2008-04-02 14:35]: There would be some good mileage out of Catalyst::Manual::Gotchas ++ Like `perldoc perltrap`. Regards, -- Aristotle Pagaltzis // http://plasmasturm.org/ ___ 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/
Re: [Catalyst] CatalystSites.org
ti che raspizdilsya po-nemetski, suka ? 2008/4/2, Ulf Lenski [EMAIL PROTECTED]: Hallo Ulrich, ich habe, dein Einverständnis vorausgesetzt, unsere pspf-app mal auf der unten genannten Seite veröffentlicht. http://drs.dife.de/ könnte dort doch auch gelistet werden? Wollen wir uns bei Gelegenheit mal wieder treffen? bis bald - ulf. Stephen Sykes schrieb: Hello Friends, For the past few days I have been putting together a site for listings of websites driven by the Catalyst MVC framework. The site idea was born out of a discussion on the list here a few weeks ago regarding a lack of any definitive list of sites based on the Catalyst MVC framework. Well, today I would like to announce the site launch. I hope everyone finds the site to their liking and can find the time to register and post their Catalyst driven websites. Note: I am also planning to release the source code for the site via subversion/trac as soon as I get a couple more admin features finished. So if anyone is interested in helping with the site code we can do this under version control, a sort of community driven project if you will. URL: http://www.catalystsites.org Kind Regards, Stephen Sykes ___ 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/ ___ 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/ ___ 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/
Re: [Catalyst] CatalystSites.org
* On Wed, Apr 02 2008, Oleg Pronin wrote: ti che raspizdilsya po-nemetski, suka ? 2008/4/2, Ulf Lenski [EMAIL PROTECTED]: Hallo Ulrich, ich habe, dein Einverständnis vorausgesetzt, unsere pspf-app mal auf der unten genannten Seite veröffentlicht. http://drs.dife.de/ könnte dort doch auch gelistet werden? Wollen wir uns bei Gelegenheit mal wieder treffen? bis bald - ulf. 何? -- print just = another = perl = hacker = if $,=$ ___ 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/
[Catalyst] Re: CatalystSites.org
* Jonathan Rockway [EMAIL PROTECTED] [2008-04-02 20:55]: * On Wed, Apr 02 2008, Oleg Pronin wrote: 2008/4/2, Ulf Lenski [EMAIL PROTECTED]: Hallo Ulrich, ich habe, dein Einverständnis vorausgesetzt, unsere pspf-app mal auf der unten genannten Seite veröffentlicht. http://drs.dife.de/ könnte dort doch auch gelistet werden? Wollen wir uns bei Gelegenheit mal wieder treffen? bis bald - ulf. ti che raspizdilsya po-nemetski, suka ? 何? Περί τίνος μιλάμε? Regards, -- Αριστοτέλης Παγκαλτζής // http://plasmasturm.org/ ___ 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/
Re: [Catalyst] Re: CatalystSites.org
Pagaltzis wrote: * Jonathan Rockway [EMAIL PROTECTED] [2008-04-02 20:55]: * On Wed, Apr 02 2008, Oleg Pronin wrote: 2008/4/2, Ulf Lenski [EMAIL PROTECTED]: Hallo Ulrich, ich habe, dein Einverständnis vorausgesetzt, unsere pspf-app mal auf der unten genannten Seite veröffentlicht. http://drs.dife.de/ könnte dort doch auch gelistet werden? Wollen wir uns bei Gelegenheit mal wieder treffen? bis bald - ulf. ti che raspizdilsya po-nemetski, suka ? 何? Περί τίνος μιλάμε? Regards, Can someone translate? Thanks, [stephen] ___ 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/
Re: [Catalyst] Re: CatalystSites.org
eehh... russian phrase was 'wtf are u speakin German?' (censored, cant be translated exactly) :))) 2008/4/3, Stephen Sykes [EMAIL PROTECTED]: Pagaltzis wrote: * Jonathan Rockway [EMAIL PROTECTED] [2008-04-02 20:55]: * On Wed, Apr 02 2008, Oleg Pronin wrote: 2008/4/2, Ulf Lenski [EMAIL PROTECTED]: Hallo Ulrich, ich habe, dein Einverständnis vorausgesetzt, unsere pspf-app mal auf der unten genannten Seite veröffentlicht. http://drs.dife.de/ könnte dort doch auch gelistet werden? Wollen wir uns bei Gelegenheit mal wieder treffen? bis bald - ulf. ti che raspizdilsya po-nemetski, suka ? 何? Περί τίνος μιλάμε? Regards, Can someone translate? Thanks, [stephen] ___ 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/ ___ 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/
Re: [Catalyst] Re: CatalystSites.org
Stephen Sykes [EMAIL PROTECTED] wrote on 04/02/2008 03:46:16 PM: Pagaltzis wrote: * Jonathan Rockway [EMAIL PROTECTED] [2008-04-02 20:55]: * On Wed, Apr 02 2008, Oleg Pronin wrote: 2008/4/2, Ulf Lenski [EMAIL PROTECTED]: Hallo Ulrich, ich habe, dein Einverstandnis vorausgesetzt, unsere pspf-app mal auf der unten genannten Seite veroffentlicht. http://drs.dife.de/ konnte dort doch auch gelistet werden? Wollen wir uns bei Gelegenheit mal wieder treffen? bis bald - ulf. ti che raspizdilsya po-nemetski, suka ? ?? Περί τίνος μιλάμε? Regards, Can someone translate? Ich bin nicht gut Deutsch sprechen, aber ... Hello Ulrich, I have your consent provided our pspf-app times on the Referred to below page. Http://drs.dife.de/ but there could also be listed? Shall we look at the opportunity again? Up soon - Ulf. Thanks, [stephen] ___ 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/___ 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/
Re: [Catalyst] CatalystSites.org
I posted 'games.rambler.ru' a week ago. Why didnt you add it? :) 2008/3/27, Stephen Sykes [EMAIL PROTECTED]: Hello Friends, For the past few days I have been putting together a site for listings of websites driven by the Catalyst MVC framework. The site idea was born out of a discussion on the list here a few weeks ago regarding a lack of any definitive list of sites based on the Catalyst MVC framework. Well, today I would like to announce the site launch. I hope everyone finds the site to their liking and can find the time to register and post their Catalyst driven websites. Note: I am also planning to release the source code for the site via subversion/trac as soon as I get a couple more admin features finished. So if anyone is interested in helping with the site code we can do this under version control, a sort of community driven project if you will. URL: http://www.catalystsites.org Kind Regards, Stephen Sykes ___ 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/ ___ 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/
Re: [Catalyst] CatalystSites.org
Oleg Pronin wrote: I posted 'games.rambler.ru http://games.rambler.ru' a week ago. Why didnt you add it? :) 2008/3/27, Stephen Sykes [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Hello Friends, For the past few days I have been putting together a site for listings of websites driven by the Catalyst MVC framework. The site idea was born out of a discussion on the list here a few weeks ago regarding a lack of any definitive list of sites based on the Catalyst MVC framework. Well, today I would like to announce the site launch. I hope everyone finds the site to their liking and can find the time to register and post their Catalyst driven websites. Note: I am also planning to release the source code for the site via subversion/trac as soon as I get a couple more admin features finished. So if anyone is interested in helping with the site code we can do this under version control, a sort of community driven project if you will. URL: http://www.catalystsites.org Kind Regards, Stephen Sykes ___ List: Catalyst@lists.scsys.co.uk mailto: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/ ___ 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/ Site added on 03-29-2008 - http://www.catalystsites.org/sites/view_details/11 It's not on the home page now because others have been listed recently. You have to click View All Sites link on bottom of home page, then go to page 2. I'm working on adding more links to the main navigation area, just got some other projects to finish first. Anyone interested in helping with the site code, let me know. I have svn and trac setup for collaboration. :-) [stephen] ___ 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/
Re: [Catalyst] CatalystSites.org
On 3 Apr 2008, at 09:29, Stephen Sykes wrote: Oleg Pronin wrote: I posted 'games.rambler.ru http://games.rambler.ru' a week ago. Why didnt you add it? :) 2008/3/27, Stephen Sykes [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Hello Friends, For the past few days I have been putting together a site for listings of websites driven by the Catalyst MVC framework. The site idea was born out of a discussion on the list here a few weeks ago regarding a lack of any definitive list of sites based on the Catalyst MVC framework. Thanks, this looks useful, and can probably replace the sites running catalyst pages on the wiki. I see a couple of rendering bugs - the list of sites is appearing too low down (firefox 2, os x). Also an RSS feed of newest apps would be handy, that way we can get you on planet catalyst (pop a link to add further apps in the rss feed so that the site visibility improves). I'm not sure what the 50%/51% good bit means - this isn't clear. Maybe replace this with X users marked this as a favourite - no point in allowing people to vote down ;) Any chance you can post a link to the svn url to here please so we can all look at the code ;) ___ 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/
Re: [Catalyst] CatalystSites.org
Kieren Diment wrote: On 3 Apr 2008, at 09:29, Stephen Sykes wrote: Oleg Pronin wrote: I posted 'games.rambler.ru http://games.rambler.ru' a week ago. Why didnt you add it? :) 2008/3/27, Stephen Sykes [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]: Hello Friends, For the past few days I have been putting together a site for listings of websites driven by the Catalyst MVC framework. The site idea was born out of a discussion on the list here a few weeks ago regarding a lack of any definitive list of sites based on the Catalyst MVC framework. Thanks, this looks useful, and can probably replace the sites running catalyst pages on the wiki. I see a couple of rendering bugs - the list of sites is appearing too low down (firefox 2, os x). Also an RSS feed of newest apps would be handy, that way we can get you on planet catalyst (pop a link to add further apps in the rss feed so that the site visibility improves). I'm not sure what the 50%/51% good bit means - this isn't clear. Maybe replace this with X users marked this as a favourite - no point in allowing people to vote down ;) Any chance you can post a link to the svn url to here please so we can all look at the code ;) ___ 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/ Thanks. I can setup the svn for public co, just give me a bit of time. I'll try to post a link later this evening. The code is very basic at the moment as I have had some contract work come down the pipeline recently, so if anyone has some free time to add new features, like RSS feeds, that would be awesome. The percentage feature is for votes, similar to kde-apps.org. Perhaps we need just a count of positive votes. But these features can be discussed by adding new tickets to http://trac.catalystsites.org. As I said, if anyone is interested in collaborating on the project I will setup a group user account for trac as well. I know about the ff rendering issue, I've not been able to find a fix yet. If anyone here can take a look at the html source and post a fix, I would be very happy! :-* [stephen] ___ 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/
Re: [Catalyst] Usage of $c-uri_for and $c-res-redirect
So I tried to look at the source of the test that failed, and I'm not sure I even understand what it is doing. Here's the actual error message I'm getting: t/01useok t/02podskipped: set TEST_POD to enable this test t/03podcoverageskipped: Test::Pod::Coverage 1.04 required t/04ssl1/15 # Failed test 'redirect uri ok' # at t/04ssl.t line 43. # got: 'http://localhost:443/ssl/unsecured' # expected: 'http://localhost/ssl/unsecured' # Failed test 'redirect with params ok' # at t/04ssl.t line 47. # got: 'http://localhost:443/ssl/unsecured?a=1a=2b=3c=4' # expected: 'http://localhost/ssl/unsecured?a=1a=2b=3c=4' # Looks like you failed 2 tests of 15. t/04ssl Dubious, test returned 2 (wstat 512, 0x200) Failed 2/15 subtests t/05ssl_host...ok t/06remain_in_ssl..ok The top error came from: 40 # test redirect back to http mode 41 ok( $res = request('https://localhost/ssl/unsecured'), 'request ok' ); 42 is( $res-code, 302, 'redirect back to http ok' ); 43 is( $res-header('location'), 'http://localhost/ssl/unsecured', 'redirect uri ok' ); So I'm guessing that line #41 is trying to request a secure action that would normally redirect you back to an insecure place. This jives, because it is requesting an HTTPS URL. However, If I am right, then why is it considered a failure to end up on a non-secure URL? I guess I don't understand what these tests are doing. -d Those don't make sense to anyone else, either, right? I mean, if you are going to request a URL from port 443, Dustin Suchter wrote: So I like the idea of the plugin, but I'm having a hard time installing it. I found one hit on the Internet that with a report of someone else having the exact same problem as me, but I don't see the solution online: http://www.nntp.perl.org/group/perl.cpan.testers/2007/09/msg631733.html Any ideas? Byron Young wrote: -Original Message- From: Dustin Suchter [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2008 1:13 PM To: The elegant MVC web framework Subject: [Catalyst] Usage of $c-uri_for and $c-res-redirect Let's say I want to send people back and forth between an HTTP connection and an HTTPS connection on a server based on some action. For example, clicking on a logout button from within my application while connected via HTTPS does something like: $c-res-redirect(http://foo.com/;); The above seems like a fine solution except it totally disregards the beauty of uri_for, which I would love to be using for stuff like this. Without uri_for, problems arise when you do things like test via the built in Perl webserver (the one running on port 3000 by default) while on the same webserver as my production application. So the real question is, how do I properly refer to my webserver and/or application root and include port or SSL flags? I guess I'm looking for something like $0 within uri_for. -d Hey Dustin, There's actually a neat plugin for doing this called Catalyst::Plugin::RequireSSL. You just include it in your plugins and then call $c-require_ssl() at the top of any actions you want to use SSL for. It will disable itself automatically on the test server, too. Cheers, Byron ___ 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/ ___ 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/
RE: [Catalyst] Usage of $c-uri_for and $c-res-redirect
-Original Message- From: Dustin Suchter [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 5:44 PM To: The elegant MVC web framework Subject: Re: [Catalyst] Usage of $c-uri_for and $c-res-redirect So I tried to look at the source of the test that failed, and I'm not sure I even understand what it is doing. Here's the actual error message I'm getting: t/01useok t/02podskipped: set TEST_POD to enable this test t/03podcoverageskipped: Test::Pod::Coverage 1.04 required t/04ssl1/15 # Failed test 'redirect uri ok' # at t/04ssl.t line 43. # got: 'http://localhost:443/ssl/unsecured' # expected: 'http://localhost/ssl/unsecured' # Failed test 'redirect with params ok' # at t/04ssl.t line 47. # got: 'http://localhost:443/ssl/unsecured?a=1a=2b=3c=4' # expected: 'http://localhost/ssl/unsecured?a=1a=2b=3c=4' # Looks like you failed 2 tests of 15. t/04ssl Dubious, test returned 2 (wstat 512, 0x200) Failed 2/15 subtests t/05ssl_host...ok t/06remain_in_ssl..ok The top error came from: 40 # test redirect back to http mode 41 ok( $res = request('https://localhost/ssl/unsecured'), 'request ok' ); 42 is( $res-code, 302, 'redirect back to http ok' ); 43 is( $res-header('location'), 'http://localhost/ssl/unsecured', 'redirect uri ok' ); So I'm guessing that line #41 is trying to request a secure action that would normally redirect you back to an insecure place. This jives, because it is requesting an HTTPS URL. However, If I am right, then why is it considered a failure to end up on a non- secure URL? I guess I don't understand what these tests are doing. -d Those don't make sense to anyone else, either, right? I mean, if you are going to request a URL from port 443, Heh, you know, I think I force installed that plugin because those test results looked like false negatives. It has been working fine for me, though. I probably should have investigated it more, but I just went with it and never looked back. I'm going to be installing a bunch of the catalyst modules on another server this week, so I'll let you know if I run into the same thing again, and I'll try to look into it if I have time. Byron Dustin Suchter wrote: So I like the idea of the plugin, but I'm having a hard time installing it. I found one hit on the Internet that with a report of someone else having the exact same problem as me, but I don't see the solution online: http://www.nntp.perl.org/group/perl.cpan.testers/2007/09/msg631733. html Any ideas? Byron Young wrote: -Original Message- From: Dustin Suchter [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2008 1:13 PM To: The elegant MVC web framework Subject: [Catalyst] Usage of $c-uri_for and $c-res-redirect Let's say I want to send people back and forth between an HTTP connection and an HTTPS connection on a server based on some action. For example, clicking on a logout button from within my application while connected via HTTPS does something like: $c-res-redirect(http://foo.com/;); The above seems like a fine solution except it totally disregards the beauty of uri_for, which I would love to be using for stuff like this. Without uri_for, problems arise when you do things like test via the built in Perl webserver (the one running on port 3000 by default) while on the same webserver as my production application. So the real question is, how do I properly refer to my webserver and/or application root and include port or SSL flags? I guess I'm looking for something like $0 within uri_for. -d Hey Dustin, There's actually a neat plugin for doing this called Catalyst::Plugin::RequireSSL. You just include it in your plugins and then call $c-require_ssl() at the top of any actions you want to use SSL for. It will disable itself automatically on the test server, too. Cheers, Byron ___ 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/ ___ 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/ ___ 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/
Re: [Catalyst] Usage of $c-uri_for and $c-res-redirect
Nice. I'm pretty sure they are false negatives too. I'll try a force install and see how it goes when I start actually using the plugin. -d Byron Young wrote: -Original Message- From: Dustin Suchter [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 5:44 PM To: The elegant MVC web framework Subject: Re: [Catalyst] Usage of $c-uri_for and $c-res-redirect So I tried to look at the source of the test that failed, and I'm not sure I even understand what it is doing. Here's the actual error message I'm getting: t/01useok t/02podskipped: set TEST_POD to enable this test t/03podcoverageskipped: Test::Pod::Coverage 1.04 required t/04ssl1/15 # Failed test 'redirect uri ok' # at t/04ssl.t line 43. # got: 'http://localhost:443/ssl/unsecured' # expected: 'http://localhost/ssl/unsecured' # Failed test 'redirect with params ok' # at t/04ssl.t line 47. # got: 'http://localhost:443/ssl/unsecured?a=1a=2b=3c=4' # expected: 'http://localhost/ssl/unsecured?a=1a=2b=3c=4' # Looks like you failed 2 tests of 15. t/04ssl Dubious, test returned 2 (wstat 512, 0x200) Failed 2/15 subtests t/05ssl_host...ok t/06remain_in_ssl..ok The top error came from: 40 # test redirect back to http mode 41 ok( $res = request('https://localhost/ssl/unsecured'), 'request ok' ); 42 is( $res-code, 302, 'redirect back to http ok' ); 43 is( $res-header('location'), 'http://localhost/ssl/unsecured', 'redirect uri ok' ); So I'm guessing that line #41 is trying to request a secure action that would normally redirect you back to an insecure place. This jives, because it is requesting an HTTPS URL. However, If I am right, then why is it considered a failure to end up on a non- secure URL? I guess I don't understand what these tests are doing. -d Those don't make sense to anyone else, either, right? I mean, if you are going to request a URL from port 443, Heh, you know, I think I force installed that plugin because those test results looked like false negatives. It has been working fine for me, though. I probably should have investigated it more, but I just went with it and never looked back. I'm going to be installing a bunch of the catalyst modules on another server this week, so I'll let you know if I run into the same thing again, and I'll try to look into it if I have time. Byron Dustin Suchter wrote: So I like the idea of the plugin, but I'm having a hard time installing it. I found one hit on the Internet that with a report of someone else having the exact same problem as me, but I don't see the solution online: http://www.nntp.perl.org/group/perl.cpan.testers/2007/09/msg631733. html Any ideas? Byron Young wrote: -Original Message- From: Dustin Suchter [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2008 1:13 PM To: The elegant MVC web framework Subject: [Catalyst] Usage of $c-uri_for and $c-res-redirect Let's say I want to send people back and forth between an HTTP connection and an HTTPS connection on a server based on some action. For example, clicking on a logout button from within my application while connected via HTTPS does something like: $c-res-redirect(http://foo.com/;); The above seems like a fine solution except it totally disregards the beauty of uri_for, which I would love to be using for stuff like this. Without uri_for, problems arise when you do things like test via the built in Perl webserver (the one running on port 3000 by default) while on the same webserver as my production application. So the real question is, how do I properly refer to my webserver and/or application root and include port or SSL flags? I guess I'm looking for something like $0 within uri_for. -d Hey Dustin, There's actually a neat plugin for doing this called Catalyst::Plugin::RequireSSL. You just include it in your plugins and then call $c-require_ssl() at the top of any actions you want to use SSL for. It will disable itself automatically on the test server, too. Cheers, Byron ___ 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/ ___ 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/ ___ 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/ ___ List:
Re: [Catalyst] Usage of $c-uri_for and $c-res-redirect
On Thu, Mar 27, 2008 at 2:37 AM, Dustin Suchter [EMAIL PROTECTED] wrote: So I like the idea of the plugin, but I'm having a hard time installing it. I found one hit on the Internet that with a report of someone else having the exact same problem as me, but I don't see the solution online: http://www.nntp.perl.org/group/perl.cpan.testers/2007/09/msg631733.html The changelog for Catalyst-Runtime includes the following, for v5.7011: Fixed bug where req-base and req-uri would include a port number when running in SSL mode. If you're running a version prior to 5.7011, try upgrading. If that fixes the failing tests, then post back here. It may be the case that the version requirement in RequireSSL just needs to be bumped. -A -- Adam Herzog Email: [EMAIL PROTECTED] ___ 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/
Re: [Catalyst] Usage of $c-uri_for and $c-res-redirect
That seems to have fixed the problem. Excellent catch! I had Catalyst::Runtime version 5.7010 so I used CPAN to upgrade that package which brought me up to 5.7012. I don't know of a nice clean way to remove a package you've installed with CPAN, but it was easy enough to just run 'test Catalyst::Plugin::RequireSSL' and see that it passed test #4 this time around. -d Adam Herzog wrote: On Thu, Mar 27, 2008 at 2:37 AM, Dustin Suchter [EMAIL PROTECTED] wrote: So I like the idea of the plugin, but I'm having a hard time installing it. I found one hit on the Internet that with a report of someone else having the exact same problem as me, but I don't see the solution online: http://www.nntp.perl.org/group/perl.cpan.testers/2007/09/msg631733.html The changelog for Catalyst-Runtime includes the following, for v5.7011: Fixed bug where req-base and req-uri would include a port number when running in SSL mode. If you're running a version prior to 5.7011, try upgrading. If that fixes the failing tests, then post back here. It may be the case that the version requirement in RequireSSL just needs to be bumped. -A ___ 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/
[Catalyst] Maintainability with RequireSSL and the proper way to manage public+secure applicaitons?
So I finally just got RequireSSL installed on my system. I realize my current production/development system is not as smoothy integrated as it could be. My public site is entirely static HTML, while my secure site is a proper Catalyst/MySQL/TT2 application. Because of this I chose to have Lighttpd serve static HTML directly but pass any requests for the secure site to the FastCGI handler for Catalyst. I don't really have a good way to see the static HTML content when I'm using the interal Catalyst webserver for development. So what's the right way to integrate things so that my entire system, both development with the Catalyst HTTP::Daemon and the production FastCGI system on Lighty, works without significant independent configuration and without being horribly un-optimized? I would actually like to have everything on the same domain and path and just use SSL when necessary, hence the interest in RequireSSL. -d ___ 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/
[Catalyst] New credential -- Catalyst::Authentication::Credential::OpenID
Hello everybody! [Well, mostly JayK and Tatsuhiko Miyagawa]. I think I have a working modernized (to the current bleeding edge of the Auth system) OpenID Credential package: Catalyst::Authentication::Credential::OpenID. Before I work on docs and trying to making it tested and bomb-proof I want to check with all y'all. It's based on the second generation Catalyst::Plugin::Authentication::Credential::OpenID from Tatsuhiko Miyagawa and all the new stuff from Jay Kuri. So instead of $c-authenticate_openid() you have realm based auth $c-authenticate({ openid_identifier = $claimed_uri }, openid) I considered including the legacy parts of CPA::Credential::OpenID, specifically authenticate_openid(), but have come out against it as too confusing without a big enough user base to justify it. Contrary arguments are welcome. The docs and error feedback will note that the store class Null (with user class User::Hash) is the only built-in supported one. I plan to add a namespace-preserving data slurp on the OpenID stuff (though I haven't looked at how/where this will work so it might be wishful thinking for now) so that arbitrary things like Simple Registration will be brought in as a sub-hash-ref instead of multiple key-val pairs at the top of the user object. Perhaps this is where a user class for OpenID should happen; it would follow the OpenId spec and refuse to find_user unless the required fields were present. So, that would mean the package (with two classes, credential and user) would be released together under the otherwise empty namespace Catalyst::Authentication::OpenID(???). Also, OpenID stuff can be difficult, to put it mildly, to debug so I'd like to put in lots of debug statements. What is (or which module represents) the current best practice for per module debug handling so it can be toggled (in the config?)? Related: http://openid.net/specs/openid-simple-registration-extension-1_0.html Do the name change and general direction sound right? -Ashley -- PS: 바보 to that thread. ___ 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/