RE: beginning and testing

2014-10-08 Thread Mark Hedges
-Original Message- From: Paul Johnson [mailto:p...@pjcj.net] Sent: Tuesday, October 07, 2014 12:39 PM On Tue, Oct 07, 2014 at 08:23:58AM -0500, Patton, Billy wrote: > I’m just not sure where to start. > Any recommendations would help. I'm going to give you some different, and perhaps som

RE: beginning and testing

2014-10-07 Thread Mark Hedges
-Original Message- From: Vincent Veyron [mailto:vv.li...@wanadoo.fr] Sent: Tuesday, October 07, 2014 2:32 PM On Tue, 7 Oct 2014 17:42:56 + Mark Hedges wrote: > > I have found Apache::Test extremely useful for testing web applications. > Don't let anyone tell you

RE: beginning and testing

2014-10-07 Thread Mark Hedges
-Original Message- From: Patton, Billy [mailto:billy.pat...@h3net.com] Sent: Tuesday, October 07, 2014 6:24 AM To: modperl@perl.apache.org Subject: beginning and testing I'm rewriting/moving an app that hasn't been touched in over 5 years. The original developers have since left the c

RE: lost directory indexes

2014-09-17 Thread Mark Hedges
ath args after the requested URI? It looks like embperl did it, but I didn't look too far into it. HTH. Mark Hedges

RE: Shared Dirty memory of Apache parent process

2014-09-17 Thread Mark Hedges
d you will only use the amount of memory once for all processes. Using package vars to cache data is nice for small amounts that don't change in size. If you go too far down that road you run into the problem you described... it's no longer manageable. HTH. Mark Hedges

RE: mod_perl2 on Solaris 10 (01/2013, x86) with Apache 2.4.9 and Perl 5.20.0

2014-07-28 Thread Mark Hedges
I've always found I have to build apr, apr-util and apr-iconv separately first if I am building mod_perl from scratch. You might try that, then build Apache using --with-apr, --with-apr-util and --with-apr-iconv args, then build mod_perl using MP_APR_CONFIG and see if you get past that. Mark

RE: pass extra args to a test in Apache::Test?

2014-07-25 Thread Mark Hedges
Hey nevermind, setting env vars works. I guess I must have typed that wrong before when I tried that. Thank you. Mark -Original Message- From: Mark Hedges Sent: Friday, July 25, 2014 3:46 PM To: modperl@perl.apache.org Cc: Mark Hedges Subject: pass extra args to a test in Apache

pass extra args to a test in Apache::Test?

2014-07-25 Thread Mark Hedges
Hi. Is there a way to pass extra command-line arguments to a test script running in Apache::Test? I want to do: t/TEST -verbose t/foobar.t --baz And have this argument show up in @ARGV of t/foobar.t. Is there a special trick? Or, this would work: BAZ=1 t/TEST -verbose t/foobar.t And h

libpthread problem, docs error

2014-07-03 Thread Mark Hedges
My build of event MPM in Apache 2.2.27 / mod_perl svn trunk works most of the time, but occasionally segfaults at random places in my handler when subjected to a lot of hits. 2014-07-03 14:48:54 Thu $ gdb /ntfhome/local/sbin/httpd -core /ntfhome/users/Mark.Hedges/work/ntf/src/t/core.14236 GN

RE: Apache2::URI::unescape_url bug?

2014-06-29 Thread Mark Hedges
Hedges Cc: modperl@perl.apache.org Subject: Re: Apache2::URI::unescape_url bug? On Fri, 27 Jun 2014 17:12:35 + Mark Hedges wrote: > The intent was to report that Apache2::URI::unescape does not seem to work > correctly. > This is what I get when I try your code : Undefined s

RE: Apache2::URI::unescape_url bug?

2014-06-27 Thread Mark Hedges
PM, Mark Hedges wrote: > Try in a handler. (Apparently you cannot use Apache2::URI from command line?) > > use Apache2::Log (); > use Apache2::URI (); > sub handler { > my ($r) = @_; > my $string = "6%2D41913%2FUK1"; > Apache2::URI::unescape($str

Apache2::URI::unescape_url bug?

2014-06-26 Thread Mark Hedges
Try in a handler. (Apparently you cannot use Apache2::URI from command line?) use Apache2::Log (); use Apache2::URI (); sub handler { my ($r) = @_; my $string = "6%2D41913%2FUK1"; Apache2::URI::unescape($string); $r->log_error($string); } Log contains: 6-41913/UK1\0UK1 ?? -Mark

RE: bug in trunk in Apache::Reload test

2014-06-26 Thread Mark Hedges
Of Sergiy Borodych Sent: Thursday, June 26, 2014 2:14 AM To: Joshua Narins Cc: Mark Hedges; modperl@perl.apache.org Subject: Re: bug in trunk in Apache::Reload test Hello, another question:  why not just my $args = $r->args; if ( $args and $args eq 'last' ) { (without defined

RE: APREQ_ERROR_MISMATCH error, I think

2014-06-23 Thread Mark Hedges
D'oh sorry bad value for POST_MAX, please ignore. -Mark -Original Message- From: Mark Hedges Sent: Monday, June 23, 2014 4:02 PM To: apreq-...@httpd.apache.org; mod_perl list Cc: Mark Hedges Subject: RE: APREQ_ERROR_MISMATCH error, I think No one seems home on the apreq-dev list s

RE: APREQ_ERROR_MISMATCH error, I think

2014-06-23 Thread Mark Hedges
al Message----- From: Mark Hedges Sent: Friday, June 20, 2014 5:51 PM To: apreq-...@httpd.apache.org Cc: Mark Hedges Subject: APREQ_ERROR_MISMATCH error, I think Any clues for the clueless? This is accompanied by a 500 internal server error. The same handler works fine when I do not use Apache2::Re

RE: any way to get the uri path part that matches $r->location?

2014-06-23 Thread Mark Hedges
I was thinking about this, I think I can do something like: my $loc = $r->location; $loc =~ s{/$}{}; my ($loc_match, $rest_of_path) = $r->uri =~ m{^(\Q$loc\E.*?/)(.*?)$}mxs; I will try it out when I get a chance. Mark -Original Message- From: Mark Hedges Sent: Monday, June 23, 2

error in Apache::TestSSLCA, cannot build libapreq

2014-06-23 Thread Mark Hedges
"Use of each() on hash after insertion without resetting hash iterator results in undefined behavior, Perl interpreter: 0xf2e8010 at /ntfhome/local/lib/perl5/site_perl/5.20.0/x86_64-linux-thread-multi-ld/Apache/TestSSLCA.pm line 103. Compilation failed in require at /ntfhome/local/lib/perl5/sit

bug in Apache2::BuildConfig using trunk and event MPM

2014-06-23 Thread Mark Hedges
It seems like mpm_is_threaded should answer 1 for the event MPM, but it answers 0, and the test fails. The patch works around this by detecting whether it is actually prefork or not, but there may be a deeper problem here. HTH. -Mark 2014-06-23 14:02:45 Mon $ svn diff ModPerl-Registry/t/pre

bug in trunk in Apache::Reload test

2014-06-23 Thread Mark Hedges
Perl 5.20.0, Apache 2.2.27, APR 1.5.1, APR-util 1.5.3, mod_perl trunk. 2014-06-23 11:16:32 Mon $ svn diff t/lib/Apache2/TestReload.pm Index: t/lib/Apache2/TestReload.pm === --- t/lib/Apache2/TestReload.pm (revision 160470

RE: bug in test script t/api/err_headers_out.t in released mod_perl 2.0.8 - patch supplied

2014-06-23 Thread Mark Hedges
This worked in trunk. Thanks. I guess I spun my wheels for a couple hours. Would it be a good idea to roll out 2.0.9 as a bugfix, and make httpd24 2.1.0? 2.0.10? Mark -Original Message- From: Mark Hedges Sent: Monday, June 23, 2014 12:22 AM To: modperl@perl.apache.org Cc: Mark

any way to get the uri path part that matches $r->location?

2014-06-23 Thread Mark Hedges
In Apache2::Controller the dispatch mechanism gets the URI into a variable, then removes $r->location from the start of it to get the remaining parts of the path, to determine which controller method to invoke. This works for conf but not , because $r->location reports the string from the conf

RE: what is "world domination series"?

2014-06-23 Thread Mark Hedges
. This is a total non-sequitur, sorry. -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Monday, June 23, 2014 12:01 AM To: mod_perl list Subject: Re: what is "world domination series"? I may be thick, or not in the loop, but I didn't get this.

bug in test script t/api/err_headers_out.t in released mod_perl 2.0.8 - patch supplied

2014-06-23 Thread Mark Hedges
t/api/err_headers_out.t was recently changed to accommodate changes in HTTP::Headers 6.0, but the change did not make it forward-compatible for further versions of HTTP::Headers. The patch for the test script is below at the end. Thank you. HTH. -Mark s...@tst1.ntf.cftdev1 /ntfhome/local/sr

RE: what is "world domination series"?

2014-06-22 Thread Mark Hedges
*lol* ... `force install App::Ack` ... silly people :-) From: Mark Hedges Sent: Sunday, June 22, 2014 11:10 PM To: modperl@perl.apache.org Cc: Mark Hedges Subject: what is "world domination series"? Apache/2.2.27 (Unix) world domination series/2.0 mod_perl/2.0.8 Perl/v5.20.0 Server at

bug in test lib in mod_perl 2.0.8 / apache 2.2.27 - w/ patch

2014-06-22 Thread Mark Hedges
This appears to be a bug in a test library in the released current version mod_perl 2.0.8. $r->args can return undef if there is no ? in the url to specify a query string, apparently. Patch is at the bottom. HTH. -Mark s...@tst1.ntf.cftdev1 /ntfhome/local/src/perl/mod_perl-2.0.8 2014-06-22 2

what is "world domination series"?

2014-06-22 Thread Mark Hedges
Apache/2.2.27 (Unix) world domination series/2.0 mod_perl/2.0.8 Perl/v5.20.0 Server at localhost Port 8529 ... rather ominous ... Thanks. Mark

t/compat/conn_rec.t fails in httpd24threading

2014-06-09 Thread Mark Hedges
1. Problem Description: Generated test t/compat/conn_rec.t fails with incorrect test count. It wasn't there to begin with and I didn't know what bootstrapped it so the error log first shows the output of the other failed test that I just reported, then it goes on to show this test output.

t/hooks/authen_digest.t fails in httpd24threading

2014-06-09 Thread Mark Hedges
1. Problem Description: t/hooks/authen_digest.t fails s...@nta1.ntf.cftdev1 /ntfhome/local/src/mod_perl2_svn/mod_perl 2014-06-09 18:15:28 Mon $ t/TEST -verbose t/hooks/authen_digest.t /ntfhome/local/bin/httpd -d /ntfhome/local/src/mod_perl2_svn/mod_perl/t -f /ntfhome/local/src/mod_perl2_svn/

RE: http24threading t/protocol/eliza.t does not exit

2014-06-07 Thread Mark Hedges
BTW it timed out after Test 6 and then I hit ctl-C. -Original Message- From: Mark Hedges Sent: Friday, June 06, 2014 5:50 PM To: modperl@perl.apache.org Cc: Mark Hedges Subject: http24threading t/protocol/eliza.t does not exit 1. Problem Description: This is Apache 2.4.9 using the

http24threading t/protocol/eliza.t does not exit

2014-06-06 Thread Mark Hedges
1. Problem Description: This is Apache 2.4.9 using the bundled apr/apr-util. Trying to build http24threading branch. t/protocol/eliza.t never exits after the last statement. I am confused by t/protocol/TestProtocol/eliza.pm. It seems like it expects a readline interface. But I added some de

Can't build httpd24threading with perl built with -Duserelocatableinc

2014-06-06 Thread Mark Hedges
The httpd24threading branch would not build using perl 5.20.0 built with -Duserelocatableinc. When t/TEST started to run, it said it could not find the lib.pm module. It showed the @INC path, which contained the paths the mod_perl test had added, and the paths listed in the -Dotherlibdirs pa

perl -c fails with FilterSnoop example in docs

2011-02-22 Thread Mark Hedges
I copied this useful debugging filter at http://perl.apache.org/docs/2.0/user/handlers/filters.html#All_in_One_Filter It works fine, but I can't `perl -c` : hedges@vm5:~/foo$ perl -c Lame.pm Invalid CODE attribute: FilterConnectionHandler at Lame.pm line 26 BEGIN failed--compilation aborted at L

Re: undefined symbol modperl_xs_sv2request_rec

2011-02-04 Thread Mark Hedges
On Wed, 2 Feb 2011, Mark Hedges wrote: > > A change in Module::Build recently brought it in line with > the behavior of ExtUtils::MakeMaker, which caused an error > to crop up in test cases: > > # Error: Can't load > '/usr/lib/perl5/site_perl/5.8.8/i386-linu

undefined symbol modperl_xs_sv2request_rec

2011-02-04 Thread Mark Hedges
l you that modperl_xs_sv2request_rec is not defined in your shared library. Also, `prove -I blib` is not correct. You want `prove -b` which will pull in blib/lib and blib/arch. On 2011.2.3 9:08 AM, Mark Hedges via RT wrote: > It looks like this is the problem, or at least, this fixes it for me

undefined symbol modperl_xs_sv2request_rec

2011-02-03 Thread Mark Hedges
if the test suite doesn't call it. So the test is trying to tell you that modperl_xs_sv2request_rec is not defined in your shared library. Also, `prove -I blib` is not correct. You want `prove -b` which will pull in blib/lib and blib/arch. On 2011.2.3 9:08 AM, Mark Hedges via

Re: cannot install Apache2::Request from CPAN

2009-04-01 Thread Mark Hedges
On Tue, 31 Mar 2009, Mark Hedges wrote: > On Tue, 31 Mar 2009, Fred Moyer wrote: > > > Do you have /usr/lib64 in your /etc/ld.so.conf? Been a > > while since I've done 64 bit but that always seemed to > > be the issue. Run ldconfig if needed after you add it. >

Re: cannot install Apache2::Request from CPAN

2009-03-31 Thread Mark Hedges
I still have the problem that I can't install Apache2::Request from CPAN. Was I not able to do that before, after installing apr-dev yum packages etc.? On Tue, 31 Mar 2009, Fred Moyer wrote: > Do you have /usr/lib64 in your /etc/ld.so.conf? Been a > while since I've done 64 bit but that always

Re: cannot install Apache2::Request from CPAN

2009-03-31 Thread Mark Hedges
I can build libapreq2-2.12 from source on an i386 machine but not on an x86_64 virtualhost both run CentOS 5.?. gcc -shared .libs/util.o .libs/version.o .libs/cookie.o .libs/param.o .libs/parser.o .libs/parser_urlencoded.o .libs/parser_header.o .libs/parser_multipart.o .libs/module.o .libs/mod

cannot install Apache2::Request from CPAN

2009-03-31 Thread Mark Hedges
This worked at one time on this machine. Can't do it now, nor on new similarly configured machines. Any ideas? --mark-- hed...@anubis:~/DeSpam$ sudo updatedb hed...@anubis:~/DeSpam$ locate Request.pm /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/APR/Request.pm /usr/lib/perl5/site_per

Re: tUsing module

2009-03-01 Thread Mark Hedges
On Fri, 27 Feb 2009, Justin Wyllie wrote: > I want to instantiate an object just once in the lifetime > of a script, not on every request.   I'm used to Mason > where you can use Mason's <%once> block.   In mod_perl > proper would the equivalent be to instantiate it in a > BEGIN block? But it wou

Re: Deployment strategies...

2009-02-27 Thread Mark Hedges
On Fri, 27 Feb 2009, Carl Johnstone wrote: > Perrin Harkins wrote: > > > I've heard people say that DBIx::Class has a slow startup, > > so if you use that you might look there first. > > We do, I'll look. If you're loading the schema from the database instead of defining it from all the modules

Re: PerlConfigRequire and die

2009-02-23 Thread Mark Hedges
On Mon, 23 Feb 2009, Clinton Gormley wrote: > to: >eval {load_application(); 1} || print STDERR $@; >1; > > then I see the proper error message, but apache starts > anyway. > > Is there any way I can: > - cause the error to be reported properly > - force apache not to start eval {load

Re: Bug with cgi->header() + mod_perl ?

2009-02-20 Thread Mark Hedges
On Sat, 14 Feb 2009, Patrick Galbraith wrote: > Thanks - as soon as I read what you said, I looked at the > code and saw I instantiated a CGI object at the top of the > script, package-scoped so I wouldn't have to pass it > between subroutines. I thought I would test this intuition > by instantia

Re: Capturing Apache response

2009-02-13 Thread Mark Hedges
d messing with Apache altogether. > > ------ > From: "Mark Hedges" > Sent: Friday, February 13, 2009 12:07 PM > To: "Solutio at Gmail" > Cc: "André Warnier" ; > Subject: Re: Capturing Apache response > > > > > > > > > On Tue

Re: mod_perl2 with mod_dbd and Apache2

2009-02-13 Thread Mark Hedges
You'd probably want to use Apache::DBI in that case. I got the impression that you were maybe running under a threaded model with many children serving static content but sometimes opening DBI connections. Connection pooling is a cool idea but I don't know who's made it work. For example, `man

Re: Manipulating @INC and tremendous blank page

2009-02-13 Thread Mark Hedges
On Fri, 13 Feb 2009, shiriru0...@hotmail.com wrote: > - I was manipulating @INC in a BEGIN block but wasn't working. > The main app index.pl is very basic: > > use strict; > use warnings; > > use App::Core Run => 'App::Engine'; > > I was doing the manip of @INC in the App::Engine module > within

Re: Capturing Apache response

2009-02-13 Thread Mark Hedges
On Tue, 10 Feb 2009, Solutio at Gmail wrote: > First of all, I thank you both for your expert opinion on the topic. I have > never had to fiddle with this sort of Apache customization, so I'm learning in > the process... > > As for the way to communicate the file name to the filter, sure, we wo

Re: Capturing Apache response

2009-02-10 Thread Mark Hedges
Solutio at Gmail wrote: > Thanks, your version works like a charm...but doesn't > quite meets our needs. I apologize for being too vague > regarding passing parameters on to the filter. Basically, > we would like to somehow link the location and name of the > response dump with the request data, li

Re: Capturing Apache response

2009-02-09 Thread Mark Hedges
On Sun, 8 Feb 2009, Solutio at Gmail wrote: > I wonder if there is a workaround for this without adding > a connection filter? Try using something like the all-in-one FilterSnoop handler on the same page at http://perl.apache.org/docs/2.0/user/handlers/filters.html#All_in_One_Filter - I had goo

Re: Class method or Object method?

2009-01-29 Thread Mark Hedges
On Thu, 29 Jan 2009, David Ihnen wrote: > > I have encountered this 'back call into execution context' a few times. > Generally to me this means you have a singleton pattern. > > In a short concise code expression: > > package Cart; > my $instance; > sub new { return $instance ||= bless {}, $self

Re: Class method or Object method?

2009-01-29 Thread Mark Hedges
> the next request. Objects are useful because they form > discrete containers of data in the blessed references that > represent unique entities of a particular class, and they > (typically) would not persist across requests unless you use > a persistent object storage mechanism that keeps them

Re: Class method or Object method?

2009-01-29 Thread Mark Hedges
On Thu, 29 Jan 2009, Steven Siebert wrote: > On Thu, Jan 29, 2009 at 2:11 PM, kropotkin wrote: > > class A is the Catalogue and B is the Cart. Usually they > > are separate but I want to show a flag relating to the > > basket/cart in the catalogue against each product. > > Really I am putting th

Re: Class method or Object method?

2009-01-29 Thread Mark Hedges
On Thu, 29 Jan 2009, Marilyn Burgess wrote: > I really like this example too, though it lacks a class > method example: > > if(DOG::number_of_dogs_in_the_pound() > 1){ >     foreach my $dog (@Pound){ >     if($dog->is_male()){ >     print "I though so"; >     } >     } > } > > Sor

Apache::compat, perldoc modules?

2009-01-27 Thread Mark Hedges
Trying to get perldoc running in some fashion under Apache2 with libapreq2. I thought I'd use Apache2::Pod::HTML but no luck: [Tue Jan 27 14:55:04 2009] [error] [client 70.143.68.29] Can't locate object method "send_http_header" via package "Apache2::RequestRec" at /usr/lib/perl5/site_perl/5.8.8

Re: unsubscribe

2009-01-20 Thread Mark Hedges
On Tue, 20 Jan 2009, Yuan Zhang wrote: > My email doesn't display any headers. Sorry it bothers > people. I've got the right address to unsubscribe. > > Yuan > > >>> fREW Schmidt 01/20/09 1:43 PM >>> > > How many times to people have to tell you to look at the > > headers of the e-mail for the

Re: unsubscribe

2009-01-20 Thread Mark Hedges
How many times to people have to tell you to look at the headers of the e-mail for the list management addresses? --mark-- On Tue, 20 Jan 2009, Yuan Zhang wrote: > unsubscribe >

Re: Initializing Sleepycat::DbXml (Berkeley, Oracle) objects in startup.pl

2009-01-15 Thread Mark Hedges
On Thu, 15 Jan 2009, Michael Ludwig wrote: > PerlRequire /home/milu/www/eumel/startup.pl > PerlChildInitHandler Eumel::Gurke::bla; > PerlChildExitHandler Eumel::Gurke2::bla; No trailing semicolons? Probably if you first do PerlLoadModule Foo::Bar it will fail and inform you > > my $container

Re: Apache2::Reload - Very fickle, or is it just me?

2009-01-14 Thread Mark Hedges
On Wed, 14 Jan 2009, Patrick Rutkowski wrote: > Hmm, I see. Interesting points, all noted. > > I also just realized it might have to do with which of the many apache > children get which requests and when. > > I'm hoping that setting MaxRequestsPerChild to something like 1 or 2 (as > opposed to

Re: Initializing Sleepycat::DbXml (Berkeley, Oracle) objects in startup.pl

2009-01-14 Thread Mark Hedges
On Wed, 14 Jan 2009, Michael Ludwig wrote: > I want to build a mod_perl2 application using > Sleepycat::DbXml. This is > > However, I don't know how to do this. Currently, I'm > trying to set up things in startup.pl (loaded via > PerlPostConfigRequire), store the database environment > handle in

Re: mod_perl v2 documentation bugs: location of PerlOptions +Parent, PerlSwitches

2009-01-11 Thread Mark Hedges
On Sat, 10 Jan 2009, Rohan Carly wrote: > I use mod_perl 2.0.3, Apache/2.2.4, Perl 5.8.8 on Linux. I encountered some > problems that would have been easier to solve with more documentation. There is a separate documentation mailing list: http://perl.apache.org/maillist/docs-dev.html > > Per

RE: Authorization module is not working

2009-01-08 Thread Mark Hedges
On Thu, 8 Jan 2009, Odysseas Pentakalos, Ph.D. wrote: > Thanks so much for your help. That was not the problem but > it helped me see the problem. I was not importing the > Constants at the top so regardless of whether I was > returning FORBIDDEN or DECLINED, or HTTP_UNAUTHORIZED the > value was

Re: Authorization module is not working

2009-01-08 Thread Mark Hedges
On Wed, 7 Jan 2009, Odysseas Pentakalos, Ph.D. wrote: > > sub handler { > my($r) = @_; > > my $log = $r->log; > > return FORBIDDEN unless $r->is_main; > > my $subr = $r->lookup_uri($r->uri); > my $dn = $subr->subprocess_env('SSL_CLIENT_S_DN'); > > $r->log_reason("In CertAu

Re: APR, libapreq2, mod_perl2, APR::*, Apache2::*

2009-01-08 Thread Mark Hedges
On Thu, 8 Jan 2009, Adam Prime wrote: > Personally, i think libapreq should be part of core httpd > (or at least a 'normal' module, and libapreq2's perl > bindings should be part of stock mod_perl. Yeah I've run into systems multiple times where the boss was too afraid of change to allow building

Re: Acess current request using static method

2009-01-07 Thread Mark Hedges
On Wed, 7 Jan 2009, Michael Ludwig wrote: > In 2.0, is there a way to access the current request object using one of > the classes in the following fashion? > > my $r = Apache2::RequestRec->current(); # INVALID! > >From `man Apache2::RequestUtil`: # get the global request object (requires Pe

Re: a2c controller method names

2009-01-02 Thread Mark Hedges
> > On Thu, 1 Jan 2009, Mark Hedges wrote: Talking to myself > > again. I think I can make it work either way. > > Apache2::Controller won't use Apache2::Request as a > > base, but it will still instantiate the Apache2::Request > > object and put it in $self

Re: a2c controller method names

2009-01-02 Thread Mark Hedges
On Fri, 2 Jan 2009, David Ihnen wrote: > Mark Hedges wrote: > > I wonder how easy it would be to add controller > > subroutine attributes for which ones are allowed or not, > > ala Catalyst, instead of the controller having to > > provide an 'allowed_methods

Re: a2c controller method names

2009-01-01 Thread Mark Hedges
On Thu, 1 Jan 2009, Mark Hedges wrote: > > Regarding your comment about inheritance vs. references - > something I hadn't thought much about. A) I need to prefix > all my internal method names with 'a2c_' to stay out of > the controller namespace. B) You can'

a2c controller method names

2009-01-01 Thread Mark Hedges
> > - a lot of times people use references to other > > structures when they should subclass... these references > > function only to re-map arguments to other modules, > > which is ridiculous. > > > Careful on the should.  It can seem extra and possibly > confusing but isn't always.  Delegation is

Re: preserving request body across redirects

2008-12-31 Thread Mark Hedges
> > Oh no, the framework doesn't depend on using a session > > at all. Just this particular auth module depends on > > plugging in the session beforehand. > > So I have to have a persistant backstoring session in > order to use the auth module?  Well, now, but as you recommended, maybe not neces

Re: preserving request body across redirects

2008-12-31 Thread Mark Hedges
On Wed, 31 Dec 2008, Foo JH wrote: > Mark Hedges wrote: > > http://search.cpan.org/~markle/Apache2-Controller-1.000.001/ > Very interesting. I have a controller which functions in a > slightly different way, but it's good to see alternative > approaches. I think yours mak

Re: preserving request body across redirects

2008-12-30 Thread Mark Hedges
On Tue, 30 Dec 2008, David Ihnen wrote: > > in the meantime server 556 dublin suffered a network > connector air gap issue.  A trouble ticket has been > created.  These things happen. > > client -> GET -> load balancer -> > server 22 london -> looks up saved requestbody !!! > > This is the proble

Re: preserving request body across redirects

2008-12-30 Thread Mark Hedges
Thanks I really do appreciate your comments. On Mon, 29 Dec 2008, David Ihnen wrote: > Yes, I am aware of how OpenID works.  And it works in-band > unless the application explicitly sidelines it - there is > no inherent side-band communication that the client and > server will use - otherwise, yo

Re: preserving request body across redirects

2008-12-29 Thread Mark Hedges
On Mon, 29 Dec 2008, David Ihnen wrote: > > Though that is, of course, specific to the application > being programmed, utilizing client-side javascript active > stuff rather than particular web server programming to > transparently handle it on the server side using basic > html2.0 type structure.

Re: preserving request body across redirects

2008-12-29 Thread Mark Hedges
On Mon, 29 Dec 2008, David Ihnen wrote: > > Say the application's session times out, but the user > > posts something by clicking submit. > > > > They are redirected to the OpenID server but it says > > they are still logged in and returns a positive > > response. > > But you can't know that they

Re: preserving request body across redirects

2008-12-28 Thread Mark Hedges
On Sun, 28 Dec 2008, André Warnier wrote: > > > > But when they come back from the OpenID server, how > > > > do I put the saved request body or post params into > > > > the new request? > > > In Apache2::AuthCookie, the author uses a trick : convert > your POST to a GET see the sub convert_to_ge

Re: preserving request body across redirects

2008-12-28 Thread Mark Hedges
On Sat, 27 Dec 2008, Mark Hedges wrote: > Hi, I'm trying to figure out how to preserve the request > body across an OpenID login redirect cycle. > ... > But when they come back from the OpenID server, how do I put > the saved request body or post params into the new request?

preserving request body across redirects

2008-12-27 Thread Mark Hedges
Hi, I'm trying to figure out how to preserve the request body across an OpenID login redirect cycle. This handler is running as a PerlHeaderParserHandler. Say the application's session times out, but the user posts something by clicking submit. They are redirected to the OpenID server but it sa

Apache2::Controller release

2008-12-22 Thread Mark Hedges
I have achieved controller nirvana. Merry Christmas, world! OpenID auth handler doesn't preserve get/post vars across the openid server redirect sequence yet, but it will in the next version. http://search.cpan.org/~markle/Apache2-Controller-1.000.001/ Mark

Re: trapping signals in Apache::Test script to reap forks

2008-12-20 Thread Mark Hedges
On Fri, 19 Dec 2008, Mark Hedges wrote: > In order to do this I have to run a Net::OpenID::Server via > an HTTP::Server::Simple which forks the test script and runs > the test OpenID server into the background. > ... > Any idea how I could do this so the forked child of the &g

Re: Mason Error

2008-12-20 Thread Mark Hedges
On Sat, 20 Dec 2008, Mark Hedges wrote: > probably a bug at line 114 of ToObject.pm... have you > considered using a more recent version of Mason? err .. this is the most recent version

Re: Mason Error

2008-12-20 Thread Mark Hedges
On Thu, 18 Dec 2008, Felipe de Jesús Molina Bravo wrote: > 2008/12/18 db > try with nobody... > replace ownership of /etc/httpd/mason to 'nobody:nobody', and/or > change User/Group settup to 'nobody' in httpd.conf > > DIDN'T solve the issue.  web page returns same error. > > My

trapping signals in Apache::Test script to reap forks

2008-12-19 Thread Mark Hedges
Hi. I'm using Apache::Test to develop tests for my OpenID in-line session-based auth for the upcoming production release of Apache2::Controller. In order to do this I have to run a Net::OpenID::Server via an HTTP::Server::Simple which forks the test script and runs the test OpenID server into th

Re: mp2: processing a subrequest with HTML::FillInForm

2008-07-24 Thread Mark Hedges
On Mon, 21 Jul 2008, Stephen Howard wrote: > I have a form validator PerlResponseHandler (using > Data::FormValidator) that needs to repopulate a form upon > failure. Problem is, the original form is not generated > by the handler, but by other pages on the site. My > thinking is that I ought

Re: framework for modperl applications

2008-07-18 Thread Mark Hedges
On Thu, 17 Jul 2008, [EMAIL PROTECTED] wrote: > I found that Catalyst is too huge to use. Other than > Catalyst, do you have any other framework suggested for MP > applications? thanks. You could help me debug Apache2::Controller. It is still unstable and incomplete, though. YAAF. --mark--

Re: How to debug bizarre memory corruption in mod_perl

2008-07-10 Thread Mark Hedges
On Thu, 10 Jul 2008, David Kaufman wrote: > > my $foo = 'bar' if $baz; > > I wish it would still DWIM, and by that I mean the compiler should detect > my declaration + assignment + conditional and rewrite it for me as what I > meant which was simply: > > my $foo = $baz ? 'bar' : undef; > I d

Re: Apache2::Directives trouble with Apache::Test

2008-07-07 Thread Mark Hedges
On Sun, 6 Jul 2008, Geoffrey Young wrote: > Mark Hedges wrote: > > > > How do I get the Apache2::Controller::Directives module to > > work from t/conf/extra.conf.in? Try commenting out the > > PerlSetVar for the same named thing and enabling the line to >

RE: Apache2::Request undefined symbol

2008-07-07 Thread Mark Hedges
That's a normal thing. All installed modules put their config into mods-available. Then you use `a2enmod` to manage those symlinks and turn them on or off in mods-enabled. Mark On Mon, 7 Jul 2008, Paul Cameron wrote: > Yes, it's there. I just found the problem. > > The 'aptitude' package mana

Apache2::Directives trouble with Apache::Test

2008-07-05 Thread Mark Hedges
Ugh, I am so flummoxed by this. How do I get the Apache2::Controller::Directives module to work from t/conf/extra.conf.in? Try commenting out the PerlSetVar for the same named thing and enabling the line to load the directives and set A2CRenderTemplateDir. Wacky! I will buy beer for anyone who

Re: CPAN tests fail Makefile.PL using Apache::TestMM

2008-07-04 Thread Mark Hedges
Excellent! Thanks everyone for the pointers! --mark--

Re: CPAN tests fail Makefile.PL using Apache::TestMM

2008-07-04 Thread Mark Hedges
On Thu, 3 Jul 2008, Fred Moyer wrote: > > I've been getting cpan-testers results like this. What > > should I do? Thanks... --m-- > > See sub test in: > > http://search.cpan.org/src/PHRED/Apache-Dispatch-0.10/Makefile.PL Wouldn't that Makefile.PL die if mod_perl is not installed, instead of req

CPAN tests fail Makefile.PL using Apache::TestMM

2008-07-03 Thread Mark Hedges
How am I supposed to tell CPAN that the distribution requires Apache::TestMM when Makefile.PL uses it before `make` is even executed? So I can't use ExtUtils::MakeMaker's PREREQ_FATAL flag because Makefile.PL does not get that far. http://search.cpan.org/src/MARKLE/Apache2-Controller-0.0002/Make

Re: turn off error_log formatting under standard cgi handler?

2006-08-11 Thread Mark Hedges
* \[.*?\] }{}xms; s{ , \s referer: \s http:// .*? \z }{}xms; print LAME $_; } On Fri, 11 Aug 2006, Mark Hedges wrote: > From: Mark Hedges <[EMAIL PROTECTED]> > To: Philip M. Gollucci <[EMAIL PROTECTED]> > Cc: modperl@perl.apache.org > Date: Fri, 11 Aug 2006 17:47:

Re: Redhat up2date breaking mod_perl installation?

2006-08-11 Thread Mark Hedges
t out. Glad you got it working! Mark On Fri, 11 Aug 2006, Mark Hedges wrote: > From: Mark Hedges <[EMAIL PROTECTED]> > To: Andre <[EMAIL PROTECTED]> > Cc: modperl@perl.apache.org > Date: Fri, 11 Aug 2006 17:48:45 -0700 (PDT) > Subject: Re: Redhat up2date breaking mod_p

Re: Redhat up2date breaking mod_perl installation?

2006-08-11 Thread Mark Hedges
a fully non-commercial operating system that isn't years out of date. (up2date my butt) Mark > > - Original Message - > From: "Mark Hedges" <[EMAIL PROTECTED]> > To: "Jonathan" <[EMAIL PROTECTED]> > Cc: "mod_perl mod

Re: turn off error_log formatting under standard cgi handler?

2006-08-11 Thread Mark Hedges
On Fri, 11 Aug 2006, Philip M. Gollucci wrote: > > Mark Hedges wrote: > > Maybe this is a regular apache users list question, sorry, but I figure > > someone here might now. > > > > Server: Apache/2.0.55 (Debian) mod_apreq2-20051231/2.5.7 mod_perl/2.0.2 >

turn off error_log formatting under standard cgi handler?

2006-08-11 Thread Mark Hedges
Maybe this is a regular apache users list question, sorry, but I figure someone here might now. Server: Apache/2.0.55 (Debian) mod_apreq2-20051231/2.5.7 mod_perl/2.0.2 Perl/v5.8.8 Using the regular cgi handler (no mod_perl fancy stuff), my warning messages have this format: [Fri Aug 11 13:25

Re: Redhat up2date breaking mod_perl installation?

2006-08-11 Thread Mark Hedges
> On Aug 11, 2006, at 7:06 PM, Mark Hedges wrote: > > This happened to me when running up2date on rhel4 too. > > > > Had to re-install all CPAN modules. > > > > We used Apache2/Mod_perl2 compiled from source because the > > RedHate vendor lib distr

RE: Odd Apache mod_perl behavior

2006-08-11 Thread Mark Hedges
FWIW I sometimes found that if an error occured somewhere, even an incorrect use of an undefined value, it screwed up mod perl's subroutine wrapper caching and caused the handler to run again. So you could be seeing the results of the second or third time the handler was hit. If you have warni

Re: Redhat up2date breaking mod_perl installation?

2006-08-11 Thread Mark Hedges
On Fri, 11 Aug 2006, Jonathan wrote: > > Your box is now running > apache: httpd 2.0.52 28.ent i386 > perl: perl 5.8.5 36.RHEL4 i386 > i don't see any mod_perl port (httpd-perl /modperl/etc) > > my guess is that mod_perl was compiled from source, against the old perl and > th