Re: [Catalyst] utf8 on c->res-write or c->res->print

2014-02-20 Thread Tomas Doran
On Feb 20, 2014, at 2:19 PM, Dmitry L. wrote: >use utf8; You shouldn’t need this unless you have actual utf8 characters (rather than escapes) in your source code. >my $fh = $c->res->write_fh; >my $test = "\x{41f}\x{440}\x{43e}\x{431}\x{430}"; >utf8::encode($test); You probabl

Re: [Catalyst] Implementing Webhooks.

2014-01-15 Thread Tomas Doran
My take on this is to log things into ZeroMQ (via Message::Passing), and route them to Message::Passing::Output::WebHooks - the code for that output might not be as bullet proof as you’re looking for, but it should be a reasonable starting place. I’d probably go right ahead and implement the ti

Re: [Catalyst] C::Authentication::Credential::MultiFactors and C::Authentication::Progressive

2013-07-27 Thread Tomas Doran
On Jul 23, 2013, at 12:58 AM, Ferruccio Zamuner wrote: > Hi, > > I'm a bit confused about user case > > when I can use Catalyst::Authentication::Realm::Progressive > or > when I can use Catalyst::Authentication::Credential::MultiFactor > > When have I to prefer one of them? They both look en

Re: [Catalyst] How to change default LICENSE in app and files

2013-07-02 Thread Tomas Doran
You can't, sorry. Patch to be able to do so would be welcome :) Cheers t0m On 2 Jul 2013, at 02:46, bill hauck wrote: > Hi > > I was wondering if there's a way to change the default LICENSE that is added > to each Controller through myapp_create.pl. I'd like to use GNU Affero GPL > (http:

[Catalyst] Re: [Catalyst-dev] Trouble with ProxyPass

2013-06-17 Thread Tomas Doran
Moved from dev list to normal list.. On 18 Jun 2013, at 05:16, Andreas Marienborg wrote: > > On Jun 17, 2013, at 6:44 PM, Jillian Rowe > wrote: >> >> I am looking into using the proxypass option solely for development. I > > But I don't think letting Apache (or other frontend web servers li

[Catalyst] Re: [Catalyst-dev] Trouble with ProxyPass

2013-06-17 Thread Tomas Doran
Hi Jillian. You wanted the Catalyst list, not the dev list - the dev list is for the development of Catalyst itself :) On 17 Jun 2013, at 12:44, Jillian Rowe wrote: > Hello, > > I'm having trouble getting my application running under ProxyPass using > Apache. I'm not entirely sure if it my wo

Re: [Catalyst] Re: Chained and exceptions

2013-05-10 Thread Tomas Doran
We should make it a config variable that defaults to the old behaviour but adjust -Devel to default it to true in new apps. This keeps back compat, but makes new apps behave 'correctly'. +1 from me. t0m Aristotle Pagaltzis wrote: >* Bill Moseley [2013-05-10 17:15]: >> What would the develop

Re: [Catalyst] Chained and exceptions

2013-05-10 Thread Tomas Doran
On 9 May 2013, at 14:25, Bill Moseley wrote: > I have a feeling I asked this before, but cannot find the post. > > [info] Exception powered by Catalyst 5.90030 > > What's the reasoning that chained actions continue to run after an earlier > exception? > You're after this: https://metacpan.

[Catalyst] IMPORTANT SECURITY FIX: Catalyst-Authentication-Store-LDAP v1.013

2013-04-26 Thread Tomas Doran
Hi Catalyst-Authentication-Store-LDAP version 1.013 (only) contains a major security hole. If you are using this module (at this version) then you MUST upgrade. To see if you have a vulnerable version installed, run the following command: perl -MCatalyst::Authentication::Store::LDAP\ 999 Catal

Re: [Catalyst] Argh! Trying to upgrade Catalyst -- getting "Can't use string as a HASH ref..."

2013-03-31 Thread Tomas Doran
On 31 Mar 2013, at 19:58, will trillich wrote: > Hmm. I don't see anything out of line here...? > > $ perl Makefile.PL > include /home/will/projects/perl-mvc/Waste/inc/Module/Install.pm > include inc/Module/Install/Metadata.pm > include inc/Module/Install/Base.pm > include inc/Module/Install/M

Re: [Catalyst] Argh! Trying to upgrade Catalyst -- getting "Can't use string as a HASH ref..."

2013-03-31 Thread Tomas Doran
; > 'required' => undef > 8 HASH(0x9441178) > 'doc' => 'Run in the background' > 'init_arg' => 'background' > 'name' => 'background' > &#x

Re: [Catalyst] Argh! Trying to upgrade Catalyst -- getting "Can't use string as a HASH ref..."

2013-03-30 Thread Tomas Doran
What's the backtrace look like if you load Devel::SimpleTrace or Carp::Always? Cheers t0m On 30 Mar 2013, at 12:04, will trillich wrote: > We have a Catalyst app "Waste::Web" that has been running fine and we are > trying to upgrade to a more modern set of libraries via "cpanm". (One library

Re: [Catalyst] Catalyst with HTTP authentication

2013-03-26 Thread Tomas Doran
On 25 Mar 2013, at 11:54, Robert Rothenberg wrote: > > I'd suggest updating the documentation for A::C::Remote accordingly. (I can > do this if you point me in the direction of the git repo) git://git.shadowcat.co.uk/catagits/Catalyst-Plugin-Authentication.git is the read only repository U

Re: [Catalyst] Setting an environment variable with the value of a header

2013-03-26 Thread Tomas Doran
On 25 Mar 2013, at 10:18, Robert Rothenberg wrote: > On 25/03/13 14:11 Tomas Doran wrote: >> >> On 25 Mar 2013, at 11:51, Robert Rothenberg wrote: >>> >>> The issue is getting Catalyst to use the header in place of the >>> environment variable. >

Re: [Catalyst] Setting an environment variable with the value of a header

2013-03-25 Thread Tomas Doran
On 25 Mar 2013, at 11:51, Robert Rothenberg wrote: > > The issue is getting Catalyst to use the header in place of the environment > variable. Erm, the remote user Authentication::Credential::Remote comes from a header, not the environment already. E.g. if you run an app as external FCGI, it

Re: [Catalyst] Catalyst with HTTP authentication

2013-03-25 Thread Tomas Doran
On 22 Mar 2013, at 13:34, Robert Rothenberg wrote: > I'm unsure what to do here. Should I write a Plack::Middleware plugin that > translates the X-Proxy-REMOTE_USER header to an env->{REMOTE_USER}? That's exactly what's needed here :) Cheers t0m __

Re: [Catalyst] Catalyst with HTTP authentication

2013-03-14 Thread Tomas Doran
On 12 Mar 2013, at 17:10, Robert Rothenberg wrote: >> (Unless you mean you want to do the authentication on the proxy, rather than >> the app servers). > > I want to do the latter. You should still be able to use Authentication::Credential::Remote, you'll just need to re-configure your web s

Re: [Catalyst] Catalyst with HTTP authentication

2013-03-12 Thread Tomas Doran
On 12 Mar 2013, at 13:20, Robert Rothenberg wrote: > On 11/03/13 15:37 Lukas Thiemeier wrote: > >> I am using Catalyst::Authentication::Credential::Remote in a current >> project. It lets the webserver do all the authentication. You can use >> any authentication method and storage which is supp

Re: [Catalyst] Is there an authentication store for htdigest files?

2013-03-12 Thread Tomas Doran
On 12 Mar 2013, at 14:13, Robert Rothenberg wrote: > I am using Catalyst::Authentication::Credential::HTTP and would like to use > digest authentication with htdigest files. > > Is there an htdigest equivalent of Catalyst::Authentication::Store::Htpasswd? Not afaik I'm afraid. Cheers t0m __

Re: [Catalyst] Catalyst with HTTP authentication

2013-03-11 Thread Tomas Doran
On 11 Mar 2013, at 14:10, Robert Rothenberg wrote: > There is Catalyst::Authentication::Store::Htpasswd, but it does not work > with Catalyst::Authentication::Credential::HTTP. Why? How? Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http

Re: [Catalyst] ActionClass('RenderView') questions

2013-03-10 Thread Tomas Doran
On 5 Mar 2013, at 14:46, E R wrote: > My use case is that I am developing a second view class, but it can't handle > all of the templates yet. So the logic I am putting into the end method is: > > if (View2 can handle template $c->stash->{template}) { > $c->stash->{current_view} = 'View2'

Re: [Catalyst] Using the Catalyst Makefile to install

2013-03-10 Thread Tomas Doran
On 8 Mar 2013, at 04:57, Francisco Obispo wrote: > They are installed by default under the lib/ directory, I'm not a big fan of > that setup, Nobody is a big fan of this setup. This pre-dates Module::ShareDir. If someone was to fix things such that new applications installed their stuff to

Re: [Catalyst] Backlog for proposed changes in next Catalyst release

2013-03-10 Thread Tomas Doran
Turning it into a role and making it optionally be applied would be a nice to have (i.e. so people could turn it off if needed). It working seamlessly with apps which already use the (old) plugin is a *must* have (but to be fair - maybe we can just filter U::P::U::Encoding out of the plugin lis

Re: [Catalyst] ActionClass('RenderView') questions

2013-03-04 Thread Tomas Doran
On 4 Mar 2013, at 22:59, E R wrote: > In my root controller, I have this method: > > sub end : ActionClass('RenderView') { ... } > > I understand that this method is called after the controller for the request > has finished and just before the view is called to render any output. > > My que

Re: [Catalyst] May be asynchronous communication between Catalyst applications

2013-03-04 Thread Tomas Doran
On 4 Mar 2013, at 17:14, linuxsupport wrote: > Yes, I know that and tried with -f option, but result was same. No other ideas. Some code you haven't shown us doesn't work as you expect - we can't really do anything other than guess at this point :) Cheers t0m ___

Re: [Catalyst] Tutorial (in VMware) keeps losing ability to authenticate

2013-03-04 Thread Tomas Doran
On 2 Mar 2013, at 14:54, Dan Lowe wrote: > Thanks for suggestions, everyone. This does seem to be what's happening > (despite the fact that the VM is running ntpd). Even quite a while after > un-sleeping the computer, the VM continues to have an incorrect date, so ntpd > doesn't seem to be do

Re: [Catalyst] Tutorial (in VMware) keeps losing ability to authenticate

2013-02-21 Thread Tomas Doran
I'd guess the time in your VM is going crazy? (I.e. not getting updated).. Cookies (etc) are based on real time stamps - so if your VM gets very confused about the time, logins will stop working… Can you try just running 'date' inside and outside your VM - if these aren't close, that is almost

Re: [Catalyst] Catakyst::Runtime 5.90018 install issues

2012-12-05 Thread Tomas Doran
On 3 Dec 2012, at 21:18, Seven Reeds wrote: > Hi, > > I am running RedHat Enterprise 5.8, perl v5.8.8 > > I tried installing the runtime and devel modules from CPAN but they > failed the tests. I am only focusing on the runtime tests at this > time though. > > First, the initial "make" seems

[Catalyst] [ANNOUNCE] Catalyst-Runtime 5.90019

2012-12-04 Thread Tomas Doran
It gives me great pleasure to announce the latest version of Catalyst-Runtime, which fixes issues installing and running on both old (5.8) and new (5.17.6) versions of perl! Full change log below as always. Cheers t0m 5.90019 - 2012-12-04 21:31:00 - Fix for perl 5.17.6 (commit g7dc8663). RT#

Re: [Catalyst] Catalyst with Twiggy with Pocket.IO (Comet)

2012-11-28 Thread Tomas Doran
On 27 Nov 2012, at 20:11, Jaroslav Zajonc wrote: > Hi all, > > I'd like to enable my Catalyst based (FastCGI) application to support a Comet > (Long polling) service with help of Twiggy - Pocket.IO (or Stardust like) > server. Now, for my Comet server I still want to use Catalyst app for > Au

Re: [Catalyst] Can't get view / template to work ?

2012-10-31 Thread Tomas Doran
On 31 Oct 2012, at 12:32, Alexander Hartmaier wrote: > Guys, Craig is on IRC now and I'm helping him to resolve the issue. > He is using Catalyst::View::HTML::Template not ::TT so the options are > different. Awesome, thanks for jumping in an helping, much appreciated! (I have been real busy so

Re: [Catalyst] Can't get view / template to work ?

2012-10-31 Thread Tomas Doran
On 31 Oct 2012, at 09:29, Craig Chant wrote: > Sorry for the missing capital, and yes that's what I ran... also I'm sorry if > I miss ready the tutorial, I have Dyspraxia. > > Why would you have two ->config statements and not all the setting in one > ->config , that makes no sense? Right - y

Re: [Catalyst] Can't get view / template to work ?

2012-10-30 Thread Tomas Doran
On 30 Oct 2012, at 23:06, David Schmidt wrote: > On 31 October 2012 00:00, Tomas Doran wrote: >> >> On 30 Oct 2012, at 16:52, Craig Chant wrote: >> >>> I seem stuck with implementing my first view / template. >>> >>> I have a controller Login.

Re: [Catalyst] Can't get view / template to work ?

2012-10-30 Thread Tomas Doran
On 30 Oct 2012, at 16:52, Craig Chant wrote: > I seem stuck with implementing my first view / template. > > I have a controller Login.pm > > I ran the view helper script ‘create view HTML HTML::template’ > This can't possibly have worked? You mean create view HTML HTML::Template right? >

Re: [Catalyst] Global 'helper' methods

2012-10-30 Thread Tomas Doran
On 30 Oct 2012, at 15:47, Hugh Barnard wrote: > Hi > > On measurement in general, I'd recommend: Devel::NYTProf::Apache ; there's a > write up here: > http://www.slideshare.net/bobcatfish/profiling-with-develnytprof > ++ Personally, I'd not be using mod_perl if I could help it, but NYTProf

Re: [Catalyst] Global 'helper' methods

2012-10-30 Thread Tomas Doran
On 30 Oct 2012, at 15:03, Craig Chant wrote: > > Plus I always felt loading an entire module to re-arrange a tiny string seems > a bit OTT? Yes, it is :) If you know that re-arranging a string is all you're ever going to be doing, then sure - don't' do that.. However, usually when you're dea

Re: [Catalyst] Global 'helper' methods

2012-10-30 Thread Tomas Doran
On 30 Oct 2012, at 14:39, Craig Chant wrote: > Well I opted for putting my globals (methods and constants) in MyApp.pm > > It's working grand with $c->myMethod or $c->MY_CONSTANT > > I use to have them working as a bareword within my application , but > $c->MY_CONSTANT is just as easy! It's a

Re: [Catalyst] Global 'helper' methods

2012-10-30 Thread Tomas Doran
On 30 Oct 2012, at 14:03, Craig Chant wrote: > So it seems it’s OK to whack them in the main MyApp.pm , here is an example > of what is currently in a ‘MemberGlobs.pm’, which is ‘required’ in 90% of all > the perl scripts. > I’m forever having to switch between UK dates and USA dates so have

Re: [Catalyst] I'm loosing the plot here? - Controller behaviour that makes no sense

2012-10-30 Thread Tomas Doran
On 30 Oct 2012, at 20:08, Craig Chant wrote: > The path/controller/action is resolving correctly now, but any response->body > change I make in the 'index :Path' action, isn't showing when i refresh my > browser? You're not showing us the debug output of the failing request, so it's very har

Re: [Catalyst] I'm loosing the plot here? - Controller behaviour that makes no sense

2012-10-30 Thread Tomas Doran
On 30 Oct 2012, at 20:08, Craig Chant wrote: > I'm also convinced there is a caching issue, how can I refresh the browser on > a controller/action i've changed the response->body of and still get the old > output? > > Please advise if there is some form of caching in Catalyst so I can turn it

Re: [Catalyst] Unable to output anything in Root.pm -> 'auto'

2012-10-30 Thread Tomas Doran
On 30 Oct 2012, at 12:00, Craig Chant wrote: > "What was the reason for not using DBIC again?" > > The non-normalised DB with a missing schema and the fact the data is spread > across two SQL servers on separate DSN's. You didn't say anything there that didn't imply DBIC is fine. The reason

Re: [Catalyst] Moose's make_immutable in Catalyst classes

2012-10-24 Thread Tomas Doran
On 24 Oct 2012, at 05:35, Toby Corkindale wrote: > I was just wondering.. should we be adding Moose's make_immutable call > to the end of these classes? > ie. __PACKAGE__->meta->make_immutable; This makes things faster if you construct lots of them (and also makes things a bit safer, as they ca

Re: [Catalyst] Canot get application working on IIS7 via FastCGI

2012-10-23 Thread Tomas Doran
On 23 Oct 2012, at 22:03, Lyle wrote: >>> Otherwise you get issues when people try to open files with a relative path. >> >> This is normal in other web servers also. >> >> Doing that is broken, we provide $app->path_to so you don't ever have to do >> that. > > How is it broken? Because, as

Re: [Catalyst] Canot get application working on IIS7 via FastCGI

2012-10-23 Thread Tomas Doran
On 23 Oct 2012, at 12:04, Lyle wrote: > On 23/10/2012 11:37, Craig Chant wrote: >> Bingo - You are a genius Tom! >> >> Thank you so, so much, I would never have found that switch buried in the >> documentation for a long, long time! > > As this is standard behaviour for IIS, Catalyst really sh

Re: [Catalyst] Canot get application working on IIS7 via FastCGI

2012-10-23 Thread Tomas Doran
On 23 Oct 2012, at 11:37, Craig Chant wrote: > Bingo - You are a genius Tom! > > Thank you so, so much, I would never have found that switch buried in the > documentation for a long, long time! > > I cannot thank the Catalyst community enough for bearing with me and taking > the time to provi

Re: [Catalyst] Catalyst-Runtime 5.90017 isntallation problem

2012-10-23 Thread Tomas Doran
On 22 Oct 2012, at 07:48, Siddhartha wrote: > Hi > > > I have problem to install Catalyst-Runtime 5.90017 on OpenSUSE 12.1 > Any ideas This fail is due to changes in HTTP::Message (we were relying on it's internals in tests and they changed) - you can safely force the install, or you can d

Re: [Catalyst] Canot get application working on IIS7 via FastCGI

2012-10-22 Thread Tomas Doran
On 18 Oct 2012, at 14:15, Craig Chant wrote: > Here is the output for the /librarydocs path. > > > *** $env > > $VAR1 = { > 'psgi.multiprocess' => 1, > 'SCRIPT_NAME' => '', > 'PATH_INFO' => '/', > 'REQUEST_URI' => '/librarydocs' Actually, do you you h

Re: [Catalyst] Canot get application working on IIS7 via FastCGI

2012-10-22 Thread Tomas Doran
On 18 Oct 2012, at 14:15, Craig Chant wrote: > Here is the output for the /librarydocs path. > > > *** $env > > $VAR1 = { > 'psgi.multiprocess' => 1, > 'SCRIPT_NAME' => '', > 'PATH_INFO' => '/', Right, that's IIS asking for a path of / Ergo Catalyst serves / :

Re: [Catalyst] Progress bar

2012-10-20 Thread Tomas Doran
And UploadProgress is shipped, should be available once it's reindexed (permissions cock up), which should be shortly :) Cheers t0m On 19 Oct 2012, at 22:51, Tomas Doran wrote: > > On 18 Oct 2012, at 16:14, Bill Moseley wrote: >> How close is this version of Catal

Re: [Catalyst] Progress bar

2012-10-19 Thread Tomas Doran
On 18 Oct 2012, at 16:14, Bill Moseley wrote: > How close is this version of Catalyst for a release? Unfortunately, I > noticed this while preparing for an app release next week. About now - there are a couple of other patches, and I have half a tuit spare :) Cheers t0m _

[Catalyst] [ANNOUNCE] Catalyst-Runtime 5.90017

2012-10-19 Thread Tomas Doran
I'm very happy to announce the latest release of Catalyst-Runtime. This release contains a number of small improvements to enable extensibility, and a bug fix. Full changelog below as always. Cheers t0m 5.90017 - 2012-10-19 22:33:00 - Change Catalsyt _parse_attrs so that when sub attr handle

Re: [Catalyst] Canot get application working on IIS7 via FastCGI

2012-10-17 Thread Tomas Doran
On 17 Oct 2012, at 16:49, Craig Chant wrote: > Hi, > > I’ve been going round in circles unable to find any help on why my catalyst > application won’t work on IIS7 Windows Server 2008 R2 > > I find all the documentation to be incorrect,, such as setting the path to > ‘*’ stops all static co

Re: [Catalyst] Progress bar

2012-10-17 Thread Tomas Doran
On 17 Oct 2012, at 15:54, Bill Moseley wrote: > > > On Wed, Oct 17, 2012 at 12:34 AM, Tomas Doran wrote: > > > This needs a Catalyst release first - I was waiting till there were a few > more changes for that, but if it's hurting people now, we could do a new &g

Re: [Catalyst] Progress bar

2012-10-17 Thread Tomas Doran
On 17 Oct 2012, at 07:13, Dimitar Petrov wrote: > Hey Bill, > > I think t0m fixed that a week ago in trunk and it should be working. You > might want to check the trunk of the Catalyst and the Plugin and to see if it > works for you and probably ask t0m to upload new version on CPAN. This nee

Re: [Catalyst] X-Forwarded-Path

2012-10-10 Thread Tomas Doran
You're not doing anything wrong - there just isn't a common spec for doing this.. You probably want to be using Catalyst::TraitFor::Request::ProxyBase, which I wrote specifically for this use-case however :) Cheers t0m On 10 Oct 2012, at 14:34, Stephen Shorrock wrote: > Hi, > > Catalyst 5.90

Re: [Catalyst] Testing with 5.8 and 5.9 on one system

2012-09-19 Thread Tomas Doran
On 19 Sep 2012, at 11:07, Hugh Barnard wrote: > Hi folks Thanks for both of these. What I've done so far, in case anyone else > ends up with something like this: > > 1. Partial rehearsal on one of my own systems! > 2. Used local::lib to get Catalyst in local_perl in my home directory > thou

Re: [Catalyst] Testing with 5.8 and 5.9 on one system

2012-09-19 Thread Tomas Doran
Either perlbrew or local::lib should work perfectly for what you want to do. Cheers t0m On 18 Sep 2012, at 10:35, Geovanny Junio :: eutsiv wrote: > Do you know perlbrew? > > Em 18/09/2012 05:52, "Hugh Barnard" escreveu: > Hi folks > > I am currently working on [a clients] Catalyst application

Re: [Catalyst] Streaming video online to a flash or HTML5 player

2012-09-18 Thread Tomas Doran
On 14 Sep 2012, at 20:06, Hector Azpurua wrote: > I'm developing a site with serves several videos online, using Catalyst and > the JWplayer, and I cant find a stable way of stream the videos to the client > player with the capability of start the video from a random point. > > I searched the

Re: [Catalyst] Applying roles that contain actions.

2012-09-07 Thread Tomas Doran
On 5 Sep 2012, at 21:48, Bill Moseley wrote: > > Currently I just manually apply the role directly in the existing controller, > so not a huge issue, but would be handy if I could just add a role to the > base class and pull in all the components What's stopping you doing this? There is no re

Re: [Catalyst] Localizing output in Catalyst plugins using $c->loc

2012-09-03 Thread Tomas Doran
On 3 Sep 2012, at 08:53, Jan Grmela wrote: > What is the best way to localize strings in a Catalyst plugin? If it's a 'real' plugin, then it's already composed onto the app, and so you can just use $c->loc - do you instead mean a model or other component that doesn't have such easy access? Che

Re: [Catalyst] DBIx::HA

2012-08-26 Thread Tomas Doran
On 26 Aug 2012, at 09:49, Theo Bot wrote: > You are right. It's an DBIC issue. Do you happen to know where I csn address > this issue? > I'd start with the places documented by DBIC for help with DBIC :) https://metacpan.org/module/DBIx::Class#GETTING-HELP-SUPPORT Although I have to say I don

Re: [Catalyst] DBIx::HA

2012-08-25 Thread Tomas Doran
On 25 Aug 2012, at 10:41, Theo Bot wrote: > I already create a model with the ..._create.pl script. But I want to use a > dual-master mysql setup. And I want the application server to be able to > failover over to a back-up server. Yes, and this functionality is nothing to do with Catalyst, so

Re: [Catalyst] DBIx::HA

2012-08-24 Thread Tomas Doran
On 24 Aug 2012, at 08:34, Theo Bot wrote: > How do I implement the DBIx::HA module for using a dual-master mysql > implementation? No idea, but I know it's not relevant to catalyst, as you're going to do this outside Catalyst and bind it in with a Catalyst::Model::Adaptor, right? :) Cheers t0m

Re: [Catalyst] working around request timeouts

2012-08-21 Thread Tomas Doran
On 21 Aug 2012, at 17:54, James R. Leu wrote: > Chakkit et. al. > > Catalyst::Plugin::RunAfterRequest ended up being the easiest first step. > Thank you Chakkit, for the suggestion. > > Now that I have this implemented I'm seeing why a work queue system > is needed if this fix needs to be more

Re: [Catalyst] Parsing of undecoded UTF-32 at /home/davidw/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/Catalyst/Test.pm

2012-08-16 Thread Tomas Doran
On 16 Aug 2012, at 02:45, Bill Moseley wrote: > > Shouldn't that code check that the content-type is HTML before attempting to > parse? Yes! Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinf

Re: [Catalyst] Catalyst Roles With ACL

2012-08-14 Thread Tomas Doran
On 14 Aug 2012, at 18:12, Blaine Everingham wrote: > > When I try and run my program I get > Failed to load user data. You passed [ARRAY(0x39a8964)] to authenticate() > but your user source (MyApp::User) only has these columns: > [id,alias,name_first,name_last,email] Check your authenticate

Re: [Catalyst] How to handle role checking using a MockObject for Catalyst contexts

2012-08-06 Thread Tomas Doran
On 6 Aug 2012, at 15:56, Robert Rothenberg wrote: > My application has a lot of tests scripts (and even some utility scripts) > that create a Test::MockObject that imitates a Catalyst context. > > But it's largely a kluge, especially for handling authentication with things > like > > $c->check

Re: [Catalyst] Change in $c->engine->prepare_parameters

2012-08-04 Thread Tomas Doran
On 3 Aug 2012, at 14:39, Bill Moseley wrote: > What it doesn't do any more is set $c->req->parameters when called directly, > only when called as a builder. > > > I don't think prepare_parameters should be both a builder AND a method. > What about this approach: +1, except I think the clea

Re: [Catalyst] X-Forwarded-Port works no more?

2012-07-25 Thread Tomas Doran
On 24 Jul 2012, at 07:22, Alex Povolotsky wrote: > On 07/23/12 21:52, Tomas Doran wrote: >> On 23 Jul 2012, at 08:48, Alex Povolotsky wrote: >> >>> Hello, >>> >>> I'm setting up MojoMojo, https-protected. >>> >>> However, it k

Re: [Catalyst] po files directory for I18n and compilation

2012-07-25 Thread Tomas Doran
On 24 Jul 2012, at 23:57, Jeremy Trench wrote: > Hi, I have just started to use I18n for localization. It works fine, but I am > surprised because it seems that .po translations are only active after > restarts. > This way I can´t give customers the freedom to localize/customize their app. > I

Re: [Catalyst] Why does the installer include the 'xt' directory

2012-07-24 Thread Tomas Doran
On 24 Jul 2012, at 19:14, Robert Rothenberg wrote: > On 24/07/12 18:34 Bill Moseley wrote: >> >> >> On Tue, Jul 24, 2012 at 9:35 AM, Robert Rothenberg > > wrote: >> >> >>> Try this: >>> >>> >> >> http://search.cpan.org/~bobtfish/Catalyst-Devel-1.37/lib/Module/In

Re: [Catalyst] Managing module regressions.

2012-07-24 Thread Tomas Doran
On 24 Jul 2012, at 19:17, Fred Moyer wrote: > Also, these experiences are that of a large team developing large apps > to hundreds of servers. The experience of one developer deploying to a > small environment will certainly be different. I wonder how life would be different if you just deployed

Re: [Catalyst] X-Forwarded-Port works no more?

2012-07-23 Thread Tomas Doran
On 23 Jul 2012, at 08:48, Alex Povolotsky wrote: > Hello, > > I'm setting up MojoMojo, https-protected. > > However, it keeps making http: urls. > > Setting X-Forwarded-Port did not help a bit, and trying to grep > X-Forwarded-Port to 443 did not help as well. > > I've set fastcgi_param HTTP

Re: [Catalyst] catalyst install fails on View::Component::SubInclude

2012-07-18 Thread Tomas Doran
On 18 Jul 2012, at 10:21, Andrew Baxter wrote: > Hi, > > I'm trying to set up 'Gitalist' on a server; it uses Catalyst as a framework, > and the install is failing when it tries to install > Catalyst::View::Component::SubInclude. > Can anyone help with this? Sorry about this - it's known b

Re: [Catalyst] prepare_body_chunk in Catalyst 5.9

2012-07-16 Thread Tomas Doran
On 12 Jul 2012, at 21:42, Eric Wright wrote: > Looking into this further - in the the source for Catalyst I see that the > prepare_body statement has been moved to the Request object removing the > ability to hook into this event via the Plugin architecture. I was using this > hook to monitor

Re: [Catalyst] Plack::Middleware based session for Catalyst apps?

2012-07-15 Thread Tomas Doran
On 15 Jul 2012, at 10:29, Octavian Rasnita wrote: > Hi, > > Is it possible to use Plack::Middleware sessions in Catalyst apps? sub session { shift->request->env->{session} } ? Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.s

Re: Re [Catalyst] How to update data of already logged-in user?

2012-07-13 Thread Tomas Doran
On 13 Jul 2012, at 11:51, Sergey Dmitriev wrote: > Ok, if so, no problem, i just need hint like 'how to do it right way'. :) Clone the git repository, make a patch, mail it to the list :) Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo: htt

Re: Re [Catalyst] How to update data of already logged-in user?

2012-07-12 Thread Tomas Doran
On 12 Jul 2012, at 07:18, Sergey Dmitriev wrote: > Thank you Lu. BTW, set_authenticated is marked as internal method in > documentation, so it could be changed some day. > Well volunteered? Cheers t0m ___ List: Catalyst@lists.scsys.co.uk Listinfo:

Re: [Catalyst] Wiki is Temporarily Unavailable

2012-07-03 Thread Tomas Doran
On 3 Jul 2012, at 09:14, Alexander Hartmaier wrote: > It was (1) if ntpd in the vm wasn't running according to what I've read. Wasn't running? eh? The bug in question was only triggered when ntpd _WAS_ running, and had signalled the kernel to take the leap second. Your statement is, I guess,

Re: [Catalyst] Wiki is Temporarily Unavailable

2012-07-02 Thread Tomas Doran
On 2 Jul 2012, at 23:46, Darren Duncan wrote: > > So is this the leap-second bug or the power outage or something else? -- > Darren Duncan (1) or (3), not (2). VM had hard locked, no console output etc :( Cheers t0m ___ List: Catalyst@lists.scsys.

[Catalyst] ANNOUNCE Catalyst-Runtime 5.90015

2012-06-30 Thread Tomas Doran
Hi I'm pleased to release the latest maintenance of Catalyst - 5.90015. This release fixes regressions and incompatibilities resulting from he refactoring in 5.90013, and is a highly recommended upgrade for anyone using versions 5.90013 or 5.90014. Full change log below as always. Cheers t0m

Re: [Catalyst] Using Progressive realms when username and password fields are all different

2012-06-30 Thread Tomas Doran
On 29 Jun 2012, at 21:18, Gavin Henry wrote: > The main problem is that and the fact that username_field is missing. > > I'd like to do ->authenticate( { username => $blah, password => $blah2 }) > > if username_field and/or password_field is in the config, map those to > above values, if not > j

Re: [Catalyst] Using Progressive realms when username and password fields are all different

2012-06-30 Thread Tomas Doran
On 29 Jun 2012, at 10:59, Will Crawford wrote: > On 28 June 2012 23:12, Gavin Henry wrote: > ... >> Thanks Tim. Yes, I know that but then the other two realms will fail >> and that's the point of progressive. I want to call one ->authenticate >> which tries all the realms I've defined in progres

Re: [Catalyst] using perldoc on VM

2012-06-12 Thread Tomas Doran
On 11 Jun 2012, at 17:02, André Walker wrote: > Anyway, it wouldn't hurt to have it installed by default. Shouldn't we update > the VM? Who has permission to do so? Yes! Please hassle kd and/or hkclarke until it gets sorted out - (and / or just report a bug in the Tutorial - they do get looked

Re: [Catalyst] Additional scripts accessing the Model and Config?

2012-06-08 Thread Tomas Doran
On 8 Jun 2012, at 19:05, Luis Muñoz wrote: > he configuration data (for instance, how to setup the database/ldap/whatever > Model, etc). Does that happen as well when using the class method? Sorry - I'm confused - how does calling into the app to get stuff as $self->application_name->model('Fo

Re: [Catalyst] Additional scripts accessing the Model and Config?

2012-06-08 Thread Tomas Doran
On 7 Jun 2012, at 23:17, Luis Muñoz wrote: > The part that's stumping me is how to go within Dump.pm about obtaining a $c > that allows me to get to the configuration (taken from the same place where > the web application takes it) and the model. You don't. $c implies a web request context,

Re: [Catalyst] CatalystX::JobServer (anyone use it?)

2012-06-05 Thread Tomas Doran
On 4 Jun 2012, at 23:25, Seth Daniel wrote: > I found CatalystX::JobServer mentioned in a thread from about a year > ago. > > It seems to still only be on github. Does anyone use this? Can anyone > recommend it? > > https://github.com/bobtfish/CatalystX-JobServer > > > I am looking at using

Re: [Catalyst] $c->user and session questions

2012-05-31 Thread Tomas Doran
On 31 May 2012, at 14:00, Kenneth S Mclane wrote: > I have an LDAP server authenticating my users. The look up returns a ton of > fields in a hash. My questions are as follows: > > 1. What happens to this data/information? Is it stored in the $c->user > object? Yes > 2. If it is, how do I

Re: [Catalyst] Role problems, Still

2012-05-24 Thread Tomas Doran
On 24 May 2012, at 13:45, Kenneth S Mclane wrote: > Well since the passwords are maintained by a company wide system and can be > authenticated via LDAP, I don't think I want to reinvent the authorization, > since it is working. > I think I will just reinvent the role checking, which should be

Re: [Catalyst] Module::Install::Catalyst and Test::Prereqs conflict?

2012-05-23 Thread Tomas Doran
On 23 May 2012, at 17:15, Robert Rothenberg wrote: > On 23/05/12 17:06 Tomas Doran wrote: >> >> On 23 May 2012, at 11:26, Robert Rothenberg wrote: >> >>> I think that there is a problem using the Makefile.PL with Test::Prereqs and >>> similar modules.

Re: [Catalyst] Module::Install::Catalyst and Test::Prereqs conflict?

2012-05-23 Thread Tomas Doran
On 23 May 2012, at 11:26, Robert Rothenberg wrote: > I think that there is a problem using the Makefile.PL with Test::Prereqs and > similar modules. > > When I run prereqs_ok(), I get the following error: > > _get_prereqs: Error loading Makefile.PL: Can't call method > "load_all_extensions" on

Re: [Catalyst] Role problems, Still

2012-05-23 Thread Tomas Doran
On 23 May 2012, at 16:37, Kenneth S Mclane wrote: > I am having difficulty in getting my user to authenticate against the second > realm. After successfully authenticating against the ldap server, I want to > authenticate against the dbic realm as well as that is where the roles are > stored.

Re: [Catalyst] LDAP question

2012-05-22 Thread Tomas Doran
On 21 May 2012, at 22:24, Kenneth S Mclane wrote: > So I should leave it as "self_check"? No. You set it as plain / don't set it at all, as the password needs to be passed through Catalyst un-mangled - as the auth is done by logging in _as the user_ (and therefore with their password) in LDAP

Re: [Catalyst] LDAP question

2012-05-22 Thread Tomas Doran
On 21 May 2012, at 17:12, Kenneth S Mclane wrote: > I'm going to post this up here to avoid those quoting issues. I'm x'ing out > my password for obvious reasons. > You missed out the app boot, and the initial bind / search… Which are the bits I think are going wrong. Also, I think my bad -

Re: [Catalyst] LDAP question

2012-05-21 Thread Tomas Doran
Your quoting and HTML mail settings are really broken! You are not quoting anyone else's email, but just changing it's font - which means that anyone using a text mail client without fonts can't see the quoting.. On 21 May 2012, at 16:18, Kenneth S Mclane wrote: > You can turn on LDAP debugging

Re: [Catalyst] LDAP question

2012-05-21 Thread Tomas Doran
On 21 May 2012, at 16:42, Robert Wohlfarth wrote: > On Mon, May 21, 2012 at 9:20 AM, Kenneth S Mclane wrote: > They are apparently doing the initial bind with the credentials submitted by > the user, I am getting invalid credentials the way I have it above, if I > change it to anonymous I get

Re: [Catalyst] LDAP question

2012-05-21 Thread Tomas Doran
On 21 May 2012, at 15:20, Kenneth S Mclane wrote: > I am continuing on my journey to duplicate a web app for administering a db. > I have all my pages up and running, as well as search functionality. I > decided to attack authentication next. I am using a php pages from a > different web app

[Catalyst] [ANNOUNCE] Catalyst-Runtime 5.90012

2012-05-19 Thread Tomas Doran
Hi I'm pleased to announce the latest maintenance release of Catalyst::Runtime, 5.90012. This release fixes issues with the upcoming perl 5.16.0, and has various other small fixes and documentation improvements. Full change log is below as always. Cheers t0m 5.90012 - 2012-05-16 09:59:00 D

Re: [Catalyst] OpenID authentication just redirects back to the login page

2012-05-14 Thread Tomas Doran
On 14 May 2012, at 16:37, Robert Rothenberg wrote: > > Any idea's what's happening? No, as we have no idea what code is executing, or how that code has been configured. Need debug logs from the app and details about your auth config to even start guessing, sorry! Cheers t0m ___

Re: [Catalyst] How to "sudo" using the Authentication plugin

2012-05-11 Thread Tomas Doran
On 11 May 2012, at 17:45, Robert Rothenberg wrote: > We're working on an application with a lot of users, and where the passwords > are encrypted (and future versions may also allow OpenID logins). > > Developers would like the ability for the "root" user to be able to become > another user, for

  1   2   3   4   5   6   7   8   9   10   >