Re: Apache2 + Mod Perl 2.0 + Template Toolkit

2010-09-21 Thread Geoffrey Young
hi :) On Tue, Sep 21, 2010 at 5:24 AM, Chris Ray wrote: > Hello, I'm currently attempting to update an Apache Cluster from Apache 1.3 > to Apache2. The website served by this cluster uses Template Toolkit > extensively. It is my understanding that the original Apache::Template > module doesn't wo

Re: Security Related BUG within ModPerl 2.0.4

2009-03-01 Thread Geoffrey Young
William A. Rowe, Jr. wrote: >> I would like to report a security related bug within ModPerl 2.0.4, >> though prefer not to disclose the details to a public channel. > > The appropriate secure channel for all ASF related security vulnerability > reporting is the closed list, secur...@apache.org,

Re: $r->status no correct

2008-10-29 Thread Geoffrey Young
Michael Peters wrote: > Ryan Gies wrote: > >> Below is an Apache log snippet which traces the handler phases for two >> requests: >> >> A) /scratch/ does NOT have a directory index >> B) /scratch/foo/ DOES have a directory index (index.html) > > So here is mine (the text for die

Re: AC US 2008

2008-10-22 Thread Geoffrey Young
Philip M. Gollucci wrote: > Hi All, > > wondering who is going to present at the Apache US 2008 conference in > New Orleans. > > I'll be there 11/2 - 11/9 > I'm presenting on wednesday afternoon: http://us.apachecon.com/c/acus2008/sessions/4 --Geoff

Re: mapping URI to filename.

2008-08-19 Thread Geoffrey Young
Anthony R Fletcher wrote: > Thanks but that only works for the current request. I was looking for a > way of translating some other URI to a pathname on the same server. $r->lookup_uri('/some/uri')->filename() http://perl.apache.org/docs/2.0/api/Apache2/SubRequest.html#C_lookup_uri_ --Geoff

Re: mapping URI to filename.

2008-08-18 Thread Geoffrey Young
Anthony R Fletcher wrote: > Using mod_perl2, is there a way of mapping a URI to a filename or > directory. > > I can get the root directory for the server and I can append the URI to > it but this doesn't taking to account aliases, UserDir directives etc.. > > Any suggestions? $r->filename()

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

2008-07-06 Thread Geoffrey Young
Mark Hedges wrote: 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 b

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

2008-07-04 Thread Geoffrey Young
Mark Hedges wrote: 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, inst

Re: Apache::Template for modperl 2

2008-06-28 Thread Geoffrey Young
Fred Moyer wrote: Senthil V wrote: Hi All, I am trying to install Apache::Template for Apache 2.2.8. Whether the porting of Apache::Template is done for modperl 2. If its done, plz let me know from where i can get the source. I just took a look at Apache::Template, and it i

Re: mod_perl caching problem

2008-06-24 Thread Geoffrey Young
william wrote: I like to add on something, I had put the pragma use strict; use warnings; on all modules that I had, but I didn't get the warnings of "Variable "$foo" will not stay shared at..." . What other possibility that might cause my program to cache the result even when the input has a

Re: [MP2]: setting group for a request (require group ...)

2008-06-23 Thread Geoffrey Young
titetluc titetluc wrote: Geoffrey, André, Thank you for your answer. Conclusion: I will have to: . write my own PerlAuthzHandler yes . define a new directive to define my group no - you can overload the Requires directive. the example I pointed you to shows you how: http://www.mo

Re: [MP2]: setting group for a request (require group ...)

2008-06-19 Thread Geoffrey Young
I would like to use my module in another configuration where group is checked PerlAuthHandler My::Auth Require group group1 I can not find any mod_perl API method (Apache2::RequestRec::group ?) to set the group. that's right. you have control over the user via the httpd (and thus m

Re: return value for response handler

2008-06-12 Thread Geoffrey Young
Torsten Foertsch wrote: On Tue 10 Jun 2008, John ORourke wrote: I had a bug with an interesting side effect which I want to understand. I wanted to redirect the user's browser, and in my response handler I was setting $r->status(302) but returning Apache2::Const::OK instead of the correct Apa

Re: Bug: Character sets and $r->custom_response

2008-05-23 Thread Geoffrey Young
Clinton Gormley wrote: Hi all There seems to be a bug in the mod_perl2/apache2 handling of character sets for $r->custom_response(). I'm not sure which is at fault. My pages are all in UTF8, but I can't find a way to set this character set for custom generated error pages. I've tried: - $

[Fwd: HELP-can you help me find MODPERL programmers? in BAY AREA PLEEZE]

2008-04-29 Thread Geoffrey Young
apparently, due diligence doesn't cover proper spelling or YELLING. but for the interested... --Geoff Original Message Subject: HELP-can you help me find MODPERL programmers? in BAY AREA PLEEZE Date: Tue, 29 Apr 2008 15:29:59 -0500 From: Morse, Patrice <[EMAIL PROTECTED]> I

Re: Porting Bricolage to mp2: TransHandler Interference

2008-04-23 Thread Geoffrey Young
Under mod_perl2, however, the same request looks like this: 75749 Apache2::RequestRec=SCALAR(0x29f3300) TransHandler start for /workflow/profile/desk/101/101/ 75749 Apache2::RequestRec=SCALAR(0x29f3300) TransHandler finish for /workflow/profile/desk/101/101/ 75749 Apache2::RequestRec=SCALAR

Re: What happened with Apache2::Reload in mod_perl-2.0.4?

2008-04-18 Thread Geoffrey Young
Fred Moyer wrote: Niels van Dijke wrote: Hi mod_perl maintainers, Thank you for releasing mod_perl 2.0.4. I was wondering what happened to Apache2::Reload? Was it missed in packaging for the upload to CPAN? If so then there may be other files missing too. See the Changelog: Apache2::Reloa

Re: [RELEASE CANDIDATE] mod_perl-2.0.4 RC1

2008-04-15 Thread Geoffrey Young
Philippe M. Chiasson wrote: The mod_perl 2.0.4 release candidate 1 "Works with Perl 5.10" is ready. It can be downloaded here: http://www.apache.org/~gozer/mp2/mod_perl-2.0.4-rc1.tar.gz tests fine on my system. +1 --Geoff

Re: Handing over the POST input to a virtual included part?

2008-04-14 Thread Geoffrey Young
Torsten Foertsch wrote: Hi, is it possible to hand over the POST input of a SSI document to a virtual included part of it? I have an SSI document that contains This way I can pass parameters that are passed in the URI to the subrequest. But how can that be done if the request method is

Re: ModPerl::MM or ExtUtils::MakeMaker or what?

2008-04-03 Thread Geoffrey Young
Torsten Foertsch wrote: Hi, I am a bit confused about what MakeMaker is best to use with mp2 modules. There is the good old ExtUtils::MakeMaker that is mentioned in http://perl.apache.org/docs/general/testing/testing.html. How I got there I don't remember but I have used in all my modules M

perl at apachecon

2008-04-02 Thread Geoffrey Young
hi all :) perl's (and mod_perl's) presence at apachecon has been dwindling over the years. I won't get into a rant about why this might be, so please don't you do it either :) anyway, if you have any interest in attending apachecon us this year, please login to the apachecon site and take t

Re: utf8 urls

2008-03-19 Thread Geoffrey Young
John ORourke wrote: Eli Shemer wrote: For some reason the following test doesn’t print anything out to the screen Do I need to change something in the apache configuration, or mod_perl’s ? /articles_read.pl?id=חוזרת ## get http parameters $r = shift; $apr = Apache2::Request->

[Fwd: Call for Papers Opens for ApacheCon US 2008 (pls forward)]

2008-03-07 Thread Geoffrey Young
Original Message Subject: Call for Papers Opens for ApacheCon US 2008 (pls forward) Date: Sat, 01 Mar 2008 21:49:34 -0500 From: Shane Curcuru <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Help drive more CFP submissions - send this to your users@ lists to help drive awareness. Th

Re: return DECLINED or OK?

2008-02-28 Thread Geoffrey Young
J. Peng wrote: At what cases should we return a DECLINED or a OK from a handler? I saw the handler of PerlTransHandler returns a Apache2::Const::DECLINED but dont know why. see the introduction to part III here: http://www.modperlcookbook.org/chapters.html in general, trans handlers retur

Re: Amazon

2008-02-23 Thread Geoffrey Young
Jonathan Vanasco wrote: I've heard from a few reputable sources that Amazon is looking to drop mod_perl, and push into another technology ( which I've also head is likely to be Java ). I always thought amazon was a good argument for perl but not mod_perl - last time I looked they were using

Re: Apache::DProf giving empty tmon.out files

2008-01-23 Thread Geoffrey Young
Ok, just tried putting it in there, didn't seem to make any difference to the tmon output (naturally, checking after stopping the server). I had noticed a reference to APR::Pool in the tmon files before so I would have thought it was loading it in any case. if you want to (again) try Devel::Pr

Re: Apache::DProf giving empty tmon.out files

2008-01-21 Thread Geoffrey Young
Alx G wrote: Hi, I'm trying to use Apache::DProf with my Perl web app. I can't work out what I'm doing wrong - it should be working but it isn't (how many times have we all said that to ourselves eh?). I've run out of options to try now, I hope someone can help me please. try Devel::Profile

Re: Apache::Test @var@ substitution

2008-01-09 Thread Geoffrey Young
Torsten Foertsch wrote: Hi, I have looked through http://perl.apache.org/docs/general/testing/testing.html for a list of variables available for @@ substitution. After that I thought the best documentation is the code and found in TestConfigParse.pm this function: sub apply_take1 { my

Re: PerlFixupHandler - %ENV

2008-01-07 Thread Geoffrey Young
Anthony Gardner wrote: I'm trying to write a FixupHandler to clean up the query_string before it gets to the response phase. Problem is, I can't. After cleaning it up, I reassign to $ENV{QUERY_STRING} but in the called response script, the original QUERY_STRING is present. I can add new keys t

Re: Perl 5.10

2007-12-21 Thread Geoffrey Young
John Siracusa wrote: > On 12/21/07 2:32 AM, Andreas J. Koenig wrote: >> I fear I do not understand enough of mod_perl to volunteer to make a >> release. > > Me neither, but have you at least contacted the mod_perl maintainers about > this? Perhaps you could file a bug on rt.cpan.org even? the

Re: Missing HTTP Headers

2007-12-19 Thread Geoffrey Young
> Client-Transfer-Encoding: chunked <-- **missing from below** > Content-Length: 123434 <-- **missing from above** you don't need a Content-Length header of your client uses a chunked transfer encoding, so these two are kinda mutually exclusive. fortunately, you also don't need to know that -

Re: GATEWAY_INTERFACE CGI-Perl

2007-11-28 Thread Geoffrey Young
> If there is a syntax error with the then I'd > appreciate it if someone could explain what it is and how to correct it > (likewise with any conflicts). I don't see the problem at first glance, but what you're asking apache to do is odd here - generally refers to a uri path component (/foo/bar

Re: Auth Question need some input

2007-11-27 Thread Geoffrey Young
Alexander Burrows wrote: ... > I gave this a shot with the little bits I could find on > the net and I can not seem to get it working. I have ordered the mod_perl > cookbook but have not received it yet. http://www.modperlcookbook.org/chapters/ch13.pdf > > I just tried a very basic one to st

Re: Hook Ordering

2007-11-27 Thread Geoffrey Young
David Eisner wrote: > We have a section of our website that is protected by Basic > username/password authentication. I've been asked to setup a system > where, once successfully authenticated, users are taken to a legal > agreement page which they are asked to accept before they can continue >

Re: [RELEASE CANDIDATE] Apache-Test-1.30 RC1

2007-11-17 Thread Geoffrey Young
Andy Armstrong wrote: > On 16 Nov 2007, at 16:33, Fred Moyer wrote: >> A release candidate for Apache::Test is now available: >> >> http://people.apache.org/~phred/Apache-Test-1.30-RC1.tar.gz >> >> Please take a moment to download, build, and report test failures or >> success back to the list.

Re: mp 2.0.3 make test fails against httpd trunk: Has authorisation changed since httpd 2.2 ?

2007-11-16 Thread Geoffrey Young
Rolf Banting wrote: > Thanks for the replies. > > I'll carry on and see if I can get to the bottom of the other make > test failures. At that point I'll seek advice on whether or not the mp > archive needs an update. > > I've moved on to access2.t now. The difference with access.t is that > use

Re: mp 2.0.3 make test fails against httpd trunk: Has authorisation changed since httpd 2.2 ?

2007-11-16 Thread Geoffrey Young
Rolf Banting wrote: > I can answer my own question, at least in part. > > In the t/httpd.conf location /TestAPI__access has AuthType none and > AuthName modperl defined. If I comment those out t/api/access.t passes > except for test 7. Test 7 expects 'none' as AuthType whereas in fact > it is '

Re: OffTopic (slightly) - Module Feedback Wanted - Authen::Ticketless

2007-11-14 Thread Geoffrey Young
> That being said - > i. i'd like to explore Digest Access more, as a replacement for > CRAM-MD5 a long time ago I thought that you could use the nonce in digest auth to provide this kind of thing: http://search.cpan.org/dist/Apache-AuthDigest/Session/Session.pm fwiw --Geoff

Re: simple profiling capability

2007-11-12 Thread Geoffrey Young
E R wrote: > Hi, > > I have the need for a simple profiling capability for mod_perl applications. > At a few (< 50) points in my code I want to call something like: > > $profiler->mark("some identifier"); > > and increment the counter for "some identifier". Later I want to be able to > get >

Re: DirectoryIndex

2007-10-24 Thread Geoffrey Young
Marilyn Burgess wrote: > Hello, > > I'm running modperl2 on Debian from the libapache2-mod-perl2 debian package > and I can't get the DirectoryIndex rule to work properly. I have the line > > DirectoryIndex index.html index.cgi index.pl index.php index.xhtml > > in apache2.conf, and in the fil

Re: mod_perl Apache2 RequestRec allowed problem

2007-10-09 Thread Geoffrey Young
Christopher Stanton wrote: > I am trying to set the allowed bitmask in a custom request handler > when I receive the OPTIONS method (and when I receive a method request > for a method I do not support). > > I have followed the example in > http://perl.apache.org/docs/2.0/api/Apache2/RequestRec.h

Re: mod_rewrite is working strangely while using mod_perl

2007-10-07 Thread Geoffrey Young
> as a workaround, please try adding > > $r->subprocess_env(); > > before you examine %ENV. it should force re-population of %ENV from the > subprocess_env table, which is where mod_rewrite stashes it's stuff. a few other things as well... your provides is running mod_perl on win32? that's

Re: mod_rewrite is working strangely while using mod_perl

2007-10-07 Thread Geoffrey Young
Marco Bretschneider wrote: > Hi again, > >> please explicitly add >> >> +SetupEnv >> >> to your PerlOptions under /folder > > added this option - same effect. > >> so, I'd like you to try a few things... >> >> first, please verify that this is not a problem with mod_cgi as well. >> that is,

Re: mod_rewrite is working strangely while using mod_perl

2007-10-05 Thread Geoffrey Young
Marco Bretschneider wrote: > Hi, > > I reported a bug that seems to be related to mod_rewrite of apache. > It turns out, that the problem only occurs while using mod_perl. > Note, that everything else is working fine with mod_perl. Anyway I'm > not quite sure where this bug belongs to (mod_perl

Re: Turning off caching

2007-10-04 Thread Geoffrey Young
Ian G. Tyndall wrote: > Thanks for the quick responses! > > For argument sake, I went ahead and added the following to the top of > one of the problem scripts: > > my $r = shift; > $r->no_cache(1); > > And it didn't fix it. if that didn't work then you might be experiencing variable sharing

Re: mod_perl success stories on ZDNet

2007-10-04 Thread Geoffrey Young
Boysenberry Payne wrote: > If I have my own success story how would I go about adding it to the list? I think you can just email your success story to the list. then someone with sufficient karma can add the email into http://svn.apache.org/repos/asf/perl/modperl/docs/trunk/src/outstanding/su

Re: Turning off caching

2007-10-04 Thread Geoffrey Young
Ian G. Tyndall wrote: > I've got an existing cgi project that I was hoping to get some > performance improvements from mod_perl. Everything was going great until > I ran into a caching issue. The script repeatedly performs the last > action given regardless of the paramaters passed in. > > I've

Re: Q: Build.PL/Makefile.PL, and CPAN testers...

2007-09-26 Thread Geoffrey Young
Fred Moyer wrote: > Graham TerMarsch wrote: >> Wanted to ping the list about something that's irked me the last few >> days... >> >> After recently releasing Apache2::Filter::Minifier::JavaScript/CSS, I >> saw several failed CPAN testers reports, generally due to the tester >> not having the requ

Re: RFC: Apache2::Filter::Minifier::JavaScript

2007-09-20 Thread Geoffrey Young
Graham TerMarsch wrote: > On Thursday 20 September 2007 6:45 am, Geoffrey Young wrote: >> Graham TerMarsch wrote: >>> I've been working on some projects needing JS minification recently and >>> wanted to ping others and find out if anyone else would find it usefu

Re: RFC: Apache2::Filter::Minifier::JavaScript

2007-09-20 Thread Geoffrey Young
Graham TerMarsch wrote: > I've been working on some projects needing JS minification recently and > wanted > to ping others and find out if anyone else would find it useful to have a > mod_perl2 filter that auto-minified your JS (using JavaScript::Minifier)... see also http://search.cpan.o

Re: intermittent import errror from Apache2::RequestUtil

2007-09-13 Thread Geoffrey Young
> > SD (sure does) :) fwiw, the "don't export anything" syntax (that is, the empty list) will actually save you a bit of memory, as nothing will be exported into the current namespace. that's why you see that syntax all over the mod_perl docs as a best practice. > > Out of curiosity, why wo

Re: intermittent import errror from Apache2::RequestUtil

2007-09-13 Thread Geoffrey Young
Charlie Katz wrote: > Hi, > > After some recent development work that included installing some new modules, > I'm suddenly seeing an intermittent import error: > > "document_root" is not exported by the Apache2::RequestUtil module > > This comes of course from the line > >use Apache2::

Re: Disconnection from basic auth

2007-08-22 Thread Geoffrey Young
Matthieu FEREYRE wrote: > I use a basic authentification (Apache2::Access) wich works fine, but my > question is : > How do I disconnect users ? the short answer is that you can't. this is why you don't see popup authentication anywhere anymore :) try a simple module like Apache::AuthCookie:

Re: modperl and fprintf(stdout,...)

2007-08-17 Thread Geoffrey Young
Manoj Bist wrote: > Hi, > > I would really appreciate if someone could answer the following question > regarding modperl and writing to stdout for me: > > I have a perl binding for a C library which generates binary(audio/video) > data. To push this binary data over an HTTP response, fprintf(s

Re: practical mod_perl

2007-08-15 Thread Geoffrey Young
Luke Lu wrote: > Hi all > >Anyone who has the (chm/pdf), please give me a > copy. http://www.modperlbook.org/ --Geoff

Re: Using bytes_sent in mod_perl2

2007-08-02 Thread Geoffrey Young
>>> unless (exists $ENV{MOD_PERL} >>> ? Apache2::RequestUtil->request()->bytes_sent() >>> : tell STDOUT) >>> { >>> #... send response headers >> since you no longer send response headers in mp2, isn't this all moot? > > Did you overlook the fact that I'm running all this t

Re: Using bytes_sent in mod_perl2

2007-08-02 Thread Geoffrey Young
Steve Hay wrote: > I'm in the process of converting some old software from mod_perl1 to > mod_perl2, and I'm finding that $r->bytes_sent() doesn't work as it used > to. yeah. IIRC the issue is that now we have filters, so in order to actually calculate bytes_sent() the filters need to run in th

Re: Can't install mod_perl

2007-07-13 Thread Geoffrey Young
> /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: > /usr/local/perl_588/lib/CORE/libperl.a(gv.o): relocatio > n R_X86_64_32S against `a local symbol' can not be used when making a > shared object; recompile with -fPIC the first google match for "recompile with -fPIC"

Re: Configuration Data vs. DirectoryIndex

2007-07-10 Thread Geoffrey Young
Marc M. Adkins wrote: > I have been struggling with DirectoryIndex behavior and configuration > information from custom Perl directives for a while now. I've been > scanning the web and posting here and thanks for the previous responses. > > I now have a solution that seems to work. I have ext

Re: PerlAuthenHandler PerlAuthzHandler in mod_perl 2.0

2007-06-28 Thread Geoffrey Young
for the record > Authen is only called if there is a 'require' that's true > and AuthType/AuthName > directive, but that is not :) you might run into trouble if you don't define those directives, but their absence won't prevent the auth phases from running. --Geoff

Re: PerlAuthenHandler PerlAuthzHandler in mod_perl 2.0

2007-06-28 Thread Geoffrey Young
Martijn wrote: > Hello. > > I'm doing some testing/debugging on a newly built server (Apache > 2.0.52, mod_perl 2.0.3) and find that both PerlAuthenHandler and > PerlAuthzHandler are ignored. > > > # PerlAccessHandler TestHandler > # the above line *does* block access > PerlAuthenHandler Test

Re: mp2 403 intermittent problem

2007-06-26 Thread Geoffrey Young
> > > SetHandler perl-script > PerlResponseHandler Work::Access::Login > PerlOptions +ParseHeaders > ErrorDocument 403 /login > > Additionally, a 500 Internal Server Error error was encountered while > trying to use an ErrorDocument to handle

Re: PerlChildInitHandler issues

2007-06-26 Thread Geoffrey Young
Mark Blackman wrote: > The problem: PerlChildInitHandler handler appears to runs in the parent > instead of the child. > > After duplicating the code in > http://perl.apache.org/docs/2.0/user/handlers/server.html > for MyApache2::Startuplog.pm in the following environment. > > Apache/2.2.4 (Uni

Re: Access apache log variables, eg %h in PerlLogHandler

2007-06-20 Thread Geoffrey Young
Brad wrote: > Hi, thanks for the reply Geoff. I'm actually trying to access the %O > bytes sent that logio.c places amongst the other variables within the > logging module. Thats something that I can't find elsewhere. Sorry > about the %h %i example, i thought %O would over complicate the > qu

Re: mod_perl is already running, too late for PerlSwitches

2007-06-20 Thread Geoffrey Young
jean jayet wrote: > Hello all, > > > during setup of mod_perl 2 with Apache 2 and perl 5.8.4 on a solaris 10 > > make test : > > Syntax error on line 47 of /tmp/mod_perl-2.0.3/t/conf/extra.conf: > mod_perl is already running, too late for PerlSwitches > > > does anybody have an idea what is

Re: Weird response from both CGI and modperl handlers

2007-06-19 Thread Geoffrey Young
Cyril SCETBON wrote: > Hi people, > > I've got some problem with both cgi and modperl. > when I post something to /perl/test.pl which just print header and a > string I got some strange numbers. The post is done with a php script. > > test.pl : > > use strict; > use CGI qw/:standard/; > > pri

Re: Access apache log variables, eg %h in PerlLogHandler

2007-06-18 Thread Geoffrey Young
Brad wrote: > Is there any way I can read variables from apache's log system back into > a PerlLogHandler? %h %l etc you might as well forget about %l - nobody runs with identd. as for %h you can use $r->c->get_remote_host() http://perl.apache.org/docs/2.0/api/Apache2/Connection.html#C_get_re

Re: set auth_type, after subrequest it lost - bug or not ?

2007-06-18 Thread Geoffrey Young
Sergij Borodych wrote: > On 06/14/07 16:14, Sergij Borodych wrote: >> Hi ALL, >> >> I need some help >> >> I set auth_type (like $r->auth_type('MyType')) in PerlAuthenHandler >> if request go in "/" (root) it generate subrequest >> for lookup index.html file name >> after this in subrequest I los

Re: DirectoryIndex vs. PerlTransHandler

2007-06-13 Thread Geoffrey Young
> My PerlResponseHandler works fine on files in the /tools directory for > pages that are specified, for example: > > /tools/environment.page > /tools/index.page > > If I use just the directory URI: > > /tools/ > > the DirectoryIndex specification works but I don't get any configuration > data

Re: Replacement for CGI.pm escape and unescape

2007-06-07 Thread Geoffrey Young
cfaust-dougot wrote: > Yes, I'm trying to HTML escape/unescape, although looking at URI::Escape it > seems like it might work. I'll have to give it a try. http://perl.apache.org/docs/2.0/user/porting/compat.html#C_Apache__Util__escape_html___ http://search.cpan.org/dist/HTML-Parser/ HTH --Ge

Re: apache2 does not deny acces though PerlAuthenHandler returns HTTP_UNAUTHORIZED

2007-05-15 Thread Geoffrey Young
Michael Peters wrote: > Moritz Maisel wrote: > >>Hi List, >> >>I wrote a PerlAuthenHandler to authenticate users that access a >>webservice. I supposed that by returning either "OK" or >>"HTTP_UNAUTHORIZED" back to apache2 it will allow or deny acces due to >>the "require valid-user" directive tha

Re: Apache::DProf missing some subroutines

2007-05-11 Thread Geoffrey Young
John ORourke wrote: > Geoffrey Young wrote: > >> Jeff wrote: >> >> >>> Not sure if its relevant, but from general Perl usage, Devel::Profiler >>> often fails to properly recognise function names if its USE statement >>> ends u

RFC: Devel::Profiler::Plugins::Template

2007-05-11 Thread Geoffrey Young
hi all :) I spent some time this week adding hooks for template toolkit into Devel::Profiler. you can find the code here http://www.modperlcookbook.org/~geoff/modules/experimental/Devel-Profiler-Plugins-Template-0.01.tar.gz I'm not entirely convinced of the namespace, which is why it's not on C

Re: Apache::DProf missing some subroutines

2007-05-11 Thread Geoffrey Young
Jeff wrote: > Original Message > Subject: Re:Apache::DProf missing some subroutines > From: Geoffrey Young <[EMAIL PROTECTED]> > CC: modperl > Date: 11 May 2007 14:11:14 > >> >>> Also, Devel::Profiler can't handle many of the D

Re: Apache::DProf missing some subroutines

2007-05-11 Thread Geoffrey Young
Jeff wrote: > > Not sure if its relevant, but from general Perl usage, Devel::Profiler > often fails to properly recognise function names if its USE statement > ends up being executed before your classes have been USEd. > > If you use factories to instantiate objects from calculated class names,

Re: Apache::DProf missing some subroutines

2007-05-11 Thread Geoffrey Young
John ORourke wrote: > Hi folks, > > Any idea why Apache::DProf would be failing to list some subroutines > that are definitely being called, in the tmon.out file? > > I grepped all sub references from tmon.out and it's listing my method > handlers, it's listing some of my constructors, and its li

[Fwd: Registration Is Open for OSCON 2007]

2007-04-30 Thread Geoffrey Young
fyi Original Message Subject: Registration Is Open for OSCON 2007 Date: Mon, 30 Apr 2007 14:43:24 -0700 From: O'Reilly Open Source Convention <[EMAIL PROTECTED]> To: GeoffreyYoung <[EMAIL PROTECTED]> O'Reilly Open Source Convention July 23-27, 200

Re: Apache::TestMB ignores '-axps=' flag ?

2007-04-23 Thread Geoffrey Young
Joshua Hoblitt wrote: > Hi Folks, > > I just discovered that version of Apache::TestMB (no version string) > from Apache-Test 1.29 is ignoring the -apxs= flags passed on the command > line. E.g., `perl Build.PL -axps=/usr/sbin/apxs2`. I really don't know the M::B extension to A-T, but in Makef

Re: $r->handler and $r->set_handlers on all files

2007-04-18 Thread Geoffrey Young
>>> >>> PerlAuthzHandler MyModule::authorize >>> >>> and in authorize: >>> >>> if ... >>> $r->handler('perl-script'); >>> $r->set_handlers( (MP2 ? 'PerlResponseHandler' : 'PerlHandler') => >>> \&somefunc ); >> >> >> why are you doing this? those same directives in httpd.conf are a >>

Re: $r->handler and $r->set_handlers on all files

2007-04-18 Thread Geoffrey Young
Sergij Borodych wrote: > Hi, > > I have configuration: > apache-2.0.59 > mod_perl-2.0.3 > > > PerlAuthzHandler MyModule::authorize > > and in authorize: > > if ... > $r->handler('perl-script'); > $r->set_handlers( (MP2 ? 'PerlResponseHandler' : 'PerlHandler') => > \&somefunc ); wh

Re: [Fwd: Call for Papers Opens for ApacheCon US 2007]

2007-04-16 Thread Geoffrey Young
Issac Goldstand wrote: > ISn't that kind of short notice? Even for a proposal and certainly for > the paper... it is what it is, and I suspect that the deadline is meant to be just before the conference committee meets for ApacheCon EU the following week. as for the distinction between "proposal

Re: [Fwd: Call for Papers Opens for ApacheCon US 2007]

2007-04-16 Thread Geoffrey Young
> The paper submission deadline is Monday, 28 April 2007, Midnight GMT. note that the date (april 28) is correct, but it's a saturday not a monday. --Geoff

Re: Can't locate ModPerl/Registry.pm in @INC

2007-04-11 Thread Geoffrey Young
Perrin Harkins wrote: > On 4/11/07, michael watson (IAH-C) <[EMAIL PROTECTED]> wrote: > >> Well, when I used the "static install" instructions (on an identical >> server) ModPerl/Registry.pm was installed in a suitable place. >> When I followed the "Dynamic install" instriuctions, it got stuck >>

Re: Can't locate object method "is_threaded" via package "Apache2::MPM"

2007-04-11 Thread Geoffrey Young
michael watson (IAH-C) wrote: > I'm running Apache/2.2.4 (Unix) mod_perl/2.0.3 Perl/v5.8.0 configured. > > BEGIN in Apache2::SizeLimit has the code: > > die "Apache2::SizeLimit at the moment works only with non-threaded > MPMs" > if Apache2::MPM->is_threaded(); nothing wrong with tha

Re: Client certificate based authentication

2007-04-09 Thread Geoffrey Young
Jonathan Vanasco wrote: > > On Apr 8, 2007, at 6:29 AM, Erik Norgaard wrote: > >> First, this might me a stupid question, but I haven't found (or >> understood) how this works. When you have multiple handlers each >> being called in different stages of the request handling, how do you >> pass

Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.91 RC4

2007-03-27 Thread Geoffrey Young
Philippe M. Chiasson wrote: > This release should be the final RC, the same as what would ship > in the latest mod_perl 1.30 RC2. > > http://people.apache.org/~gozer/mp1/Apache-SizeLimit-0.91-rc4.tar.gz looks good (finally :) +1 --Geoff

Re: MP1 Security issue

2007-03-26 Thread Geoffrey Young
Randal L. Schwartz wrote: >>"Jonathan" == Jonathan Vanasco <[EMAIL PROTECTED]> writes: > > > Jonathan> Randal didn't raise an report an new security threat -- he re- > Jonathan> categorized an active bug discussion as a security threat. > > Just for the record, I'm now clear (thanks to new

Re: Apache2::compat from mod_perl 2.0.3 -- multiple issues

2007-03-26 Thread Geoffrey Young
Joshua Hoblitt wrote: > It seems that compat.pm isn't 'use strict' clean even thou it is > declaring this pragma. > > # Error: Bareword "Apache2::ServerUtil::server_root" not allowed > while "strict subs" in use at > /usr/lib/perl5/site_perl/5.8.8/i686-linux/Apache2/compat.pm line 347, > lin

Re: [RELEASE CANDIDATE] mod_perl-1.30 RC1

2007-03-25 Thread Geoffrey Young
Philip M. Gollucci wrote: > Philippe M. Chiasson wrote: > >> The mod_perl 1.30 release candidate #1 has arrived. It can be >> downloaded here: >> >> http://www.apache.org/~gozer/mp1/mod_perl-1.30-rc1.tar.gz >> >> MD5 : 639e045d782a66746a70b7948dfa >> SHA1: 942eaffe4570a9060b3a0ed7de52ac902d054

Re: [RELEASE CANDIDATE] mod_perl-1.30 RC1

2007-03-23 Thread Geoffrey Young
Randal L. Schwartz wrote: >>"Philippe" == Philippe M Chiasson <[EMAIL PROTECTED]> writes: > > > Philippe> SECURITY: CVE-2007-1349 (cve.mitre.org) > > Is it disinformation at > that says it was > assigned on march *8th*. Last I lo

Re: MP1 Security issue

2007-03-23 Thread Geoffrey Young
> Michael> Not quite. It only affects people running PerlRun. Not insignificant, > Michael> but definitely not everyone. > > No, it affects users of all script-like things, both mod_perl1 (users of > Apache::Registry, Apache::PerlRun), and mod_perl2 (users of ModPerl::PerlRun, > ModPerl::PerlRunP

Re: MP1 Security issue (was Re: [mp1] PerlRun fails if path_info contains special symbols)

2007-03-23 Thread Geoffrey Young
> I was able to reproduce this in mp1. > > for the interested, a fix has been put in place in svn for mod_perl 1.0, > which you can grab from here: > > https://svn.apache.org/repos/asf/perl/modperl/branches/1.x/ > > furthermore, as michael pointed out, the problem is isolated to > Apache::Per

Re: MP1 Security issue (was Re: [mp1] PerlRun fails if path_info contains special symbols)

2007-03-23 Thread Geoffrey Young
Kjetil Kjernsmo wrote: > On Friday 23 March 2007 14:57, Geoffrey Young wrote: > >>fwiw, I am unable to reproduce this in either mp1 or mp2 using what I >>consider a basic setup. > > > I have also failed to reproduce the problem on 2.0.3 with my setup. > Also, we

Re: MP1 Security issue (was Re: [mp1] PerlRun fails if path_info contains special symbols)

2007-03-23 Thread Geoffrey Young
Michael Peters wrote: > Randal L. Schwartz wrote: > >>>"Alex" == Alex Solovey <[EMAIL PROTECTED]> writes: >> >>Alex> The problem is due to unescaped variable interpolation in regular >>Alex> expression $uri =~ /$path_info$/ in sub namespace_from: >> >>I don't want to raise too many alarms, but

Re: MP1 Security issue (was Re: [mp1] PerlRun fails if path_info contains special symbols)

2007-03-23 Thread Geoffrey Young
Randal L. Schwartz wrote: >>"Randal" == Randal L Schwartz writes: > > >>"Alex" == Alex Solovey <[EMAIL PROTECTED]> writes: > > Alex> The problem is due to unescaped variable interpolation in regular > Alex> expression $uri =~ /$path_info$/ in sub namespace_from: > > Randal> I don't wan

Re: Zend PHP

2007-03-09 Thread Geoffrey Young
> To be fair to Zend... you should checkout their > products, as it's not just about the support, but the > fact that they have a whole integrated developer > studio and deployment mechanism... And many other > whistles and Bells... I'm sure that's true. if that's appealing to you and you'd like

Re: Accessing SSL environment variables?

2007-02-22 Thread Geoffrey Young
Hadmut Danisch wrote: > Hi, > > another problem with porting an older authentication script: > > The script used to fetch the certificate details set from the SSL module > under Apache1.3 with some code like > > $r->subprocess_env; # initialize > $envs = $r->subprocess_env; > $dn

Re: MP 2.0.3 & Apache 2.2.3 -> auth tests fail

2007-02-08 Thread Geoffrey Young
> Or just have a look at this patch ;-) wicked cool! > -ok t_cmp(Apache2::ServerUtil::get_server_version, > +ok t_cmp(Apache2::ServerUtil::get_server_description, all the tests will need some sort of get_min_apache_version() foo wrapping, no? other than that, excellent. gozer++ --Ge

Re: [RELEASE CANDIDATE] Apache-SizeLimit 0.91 RC1

2007-01-26 Thread Geoffrey Young
Philip M. Gollucci wrote: > Fred Moyer wrote: > >>Philip M. Gollucci wrote: >> >>>Fred Moyer wrote: >>> Philip M. Gollucci wrote: > > Hi All, so it seems I dropped the ball on this (again). My apologies. > > I'm about to go dig through all 1000 emails to dev and users to see what > I missed

Re: DateTime with Apache::SmallProf

2007-01-24 Thread Geoffrey Young
Raf wrote: > On Wed, 24 Jan 2007, Perrin Harkins wrote: > >>On 1/24/07, Raf <[EMAIL PROTECTED]> wrote: >> >>>The code base I'm profiling is very big, monolithic and convoluted. I >>>felt that level of granularity given by smallprof would probably give me >>>more coverage - which I believe I need.

  1   2   3   4   5   6   7   8   9   >