Re: Apache::DBI on mp2

2003-03-07 Thread Stas Bekman
Ask Bjoern Hansen wrote: On Thu, 6 Mar 2003, Stas Bekman wrote: re: rollback, the DBD drivers will perform the normal disconnect(), but without doing the physical disconnect, and normal DESTROY, without destroying the datastructures which maintain the physical connection, so there shouldn't be mu

porting modules to mp2 docs are updated

2003-03-07 Thread Stas Bekman
Since the questions of porting to mp 2.0 are on raise, and there is some confusion regarding use of Apache::compat. I've done a massive porting docs update: Please review the following if you are involved in porting, and let me know if I've missed something or if something is still unclear: ht

Re: Apache::DBI on mp2

2003-03-07 Thread Ask Bjoern Hansen
On Thu, 6 Mar 2003, Stas Bekman wrote: > re: rollback, the DBD drivers will perform the normal disconnect(), but > without doing the physical disconnect, and normal DESTROY, without destroying > the datastructures which maintain the physical connection, so there shouldn't > be much to change for t

Re: [mp2] integration with apache threads

2003-03-06 Thread Stas Bekman
I'm solving following problem: generally may happen, that somebody has an instance of XML::Sablotron (and of few more packages) allocated in the interperter at the time, the perl is cloned. Sablotron objects are just wrappers around internal c++ structures, and the only data, they keep, are han

[mp2] automatic Apache::compat preloading in CPAN modules is a no-no

2003-03-06 Thread Stas Bekman
Apache::compat is useful during the mp1 code porting. Though remember that it's implemented in pure Perl. In certain cases it overrides mp2 methods, because their API is very different and doesn't map 1:1 to mp1. So if anything, not under my control, loads Apache::compat my code is

Re: [mp2] integration with apache threads

2003-03-06 Thread Perrin Harkins
[ Please keep posts on the list. I am not the most knowledgeable person here about threads, mp2, or XS code. ] Pavel Hlavnicka wrote: Thanks again, I'm solving following problem: generally may happen, that somebody has an instance of XML::Sablotron (and of few more packages) allocated in

Re: [mp2] integration with apache threads

2003-03-06 Thread Perrin Harkins
Pavel Hlavnicka wrote: Is it possible, that some new interpreter is cloned later then the pool is created "PerlInterpMax If all running interpreters are in use, mod_perl will clone new interpreters to handle the request, up until this number of interpreters is reached. when PerlInterpMax is rea

Re: [mp2] integration with apache threads

2003-03-06 Thread Pavel Hlavnicka
Oops, I overlooked the forst reading. Sorry for this. Anyway, even after reading this, I'm not really sure, what may happen. Is it possible, that some new interpreter is cloned later then the pool is created, and is it possible, that ANY interpreter cloning will clone my global data? (I really

Re: [mp2] integration with apache threads

2003-03-06 Thread Perrin Harkins
Pavel Hlavnicka wrote: Is there some relation between Perl threads and Apache threads? What I mean: If Apache fires a new thread, what happens in mod_perl? Are perl structures copied from the parent thread interpreter to the new one? ... or is the new perl environment clean? Have you read this?

[mp2] integration with apache threads

2003-03-06 Thread Pavel Hlavnicka
Hello all, currently I'm working over XML::Sablotron module, bringing it alive in the multithreaded environment. I searched both of Apache and mod_perl documentation, but there is one issue, I do not understand. Is there some relation between Perl threads and Apache threads? What I mean: If Ap

Re: [mp2] CGI redirects incorrectly handled?

2003-03-06 Thread Mark James
ket cut] Could mod_perl, with its persistent buffer, be tripping up on this? I'm trying now to trace the data through the mp2 code. -- Mark

Re: [mp2] CGI redirects incorrectly handled?

2003-03-05 Thread Stas Bekman
Further down modperl_cgi.c has: else if (location && (r->status == 200)) { MP_dRCFG; /* Note that if a script wants to produce its own Redirect * body, it now has to explicitly *say* "Status: 302" */ but it seems that it's being done already by CGI.pm. Can yo

Re: [mp2] CGI redirects incorrectly handled?

2003-03-05 Thread Mark James
Mark James wrote: "303 See Other" is the correct post-POST redirect response: http://rfc.net/rfc2616.html#s10.3.4 which your first link suggests works in all browsers. Well, taking a closer look, 303 doesn't work in Netscape 3 or 4. CGI.pm always returns a 302, though, if necessary, I can ed

Re: [mp2] CGI redirects incorrectly handled?

2003-03-05 Thread Mark James
Stas Bekman wrote: Mark James wrote: No, them problem only manifests under mod_perl (2, haven't used 1). Sorry, I'm not following your comment. I've suggested to test with mod_cgi (under Apache2), since mod_perl mimics mod_cgi's behavior here. I changed the handler in httpd.conf from perl-script t

Re: [mp2] CGI redirects incorrectly handled?

2003-03-05 Thread Stas Bekman
Mark James wrote: Stas Bekman wrote: Mark James wrote: I'm having CGI redirect problems mp2 (cvs). as the comment just above this line says, that code was copy-n-pasted from mod_cgi. Can you reproduce the same problem while running a cgi script? No, them problem only manifests

Re: [mp2] CGI redirects incorrectly handled?

2003-03-05 Thread Mark James
Stas Bekman wrote: Mark James wrote: I'm having CGI redirect problems mp2 (cvs). as the comment just above this line says, that code was copy-n-pasted from mod_cgi. Can you reproduce the same problem while running a cgi script? No, them problem only manifests under mod_perl (2, haven

Re: Apache::DBI on mp2

2003-03-05 Thread Stas Bekman
Perrin Harkins wrote: Stas Bekman wrote: FWIW, we are discussing the internal DBI pooling mechanism at the dbi-dev list and having already a sort-of-working prototype. So hopefully there will be no need for Apache::DBI in the near future, as DBI will be able to handle pooling internally. Howeve

Re: Apache::DBI on mp2

2003-03-05 Thread Perrin Harkins
Stas Bekman wrote: FWIW, we are discussing the internal DBI pooling mechanism at the dbi-dev list and having already a sort-of-working prototype. So hopefully there will be no need for Apache::DBI in the near future, as DBI will be able to handle pooling internally. However it may take some tim

Re: [mp2] CGI redirects incorrectly handled?

2003-03-05 Thread Stas Bekman
Mark James wrote: I'm having CGI redirect problems mp2 (cvs). Instead of being redirected to the proper web page, I'm sometimes getting a "302 Moved" page containing a link to the correct URL. Seems to be related to the following code in modperl_cgi.c: if (location &&

Re: [mp2] CGI redirects incorrectly handled?

2003-03-05 Thread Nick Tonkin
On Thu, 6 Mar 2003, Mark James wrote: > Nick Tonkin wrote: > > > Now that I think about it, maybe you're using CGI.pm to do your redirect? > > If so, maybe the code in CGI.pm has not been correctly updated? > > Yes Nick, I'm using CGI.pm version 2.91 (the latest). Its redirect code > sends a "Sta

Re: [mp2] CGI redirects incorrectly handled?

2003-03-05 Thread Mark James
Nick Tonkin wrote: Now that I think about it, maybe you're using CGI.pm to do your redirect? If so, maybe the code in CGI.pm has not been correctly updated? Yes Nick, I'm using CGI.pm version 2.91 (the latest). Its redirect code sends a "Status: 302 Moved". Mark

Re: [mp2] CGI redirects incorrectly handled?

2003-03-05 Thread Nick Tonkin
How are you telling the server to redirect? You do know it's different from mp1, right? In mp2 you need to do: my $location = 'http://foo.bar.baz'; $r->headers_out->{'Location'} = $location; # Or use $r->err_headers_out->{'Location'} which you wi

Re: mp2 runs scripts as root?

2003-03-05 Thread Mark James
Stas Bekman wrote: ... Well, actually this is not the case. It behaves exactly the same as in modperl 1.0. You can use Env::C module (available from CPAN) to easily debug this: ... In any case you probably want to rely on getpwuid($<), rather than $ENV{USER} if applicable. Unfortunately ci (RCS

[mp2] CGI redirects incorrectly handled?

2003-03-05 Thread Mark James
I'm having CGI redirect problems mp2 (cvs). Instead of being redirected to the proper web page, I'm sometimes getting a "302 Moved" page containing a link to the correct URL. Seems to be related to the following code in modperl_cgi.c: if (location && (location[0]

RE: [mp2] apache/mod_perl starup failure using cvs 09

2003-03-05 Thread Beau E. Cox
Hi Stas - > -Original Message- > From: Stas Bekman [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 04, 2003 10:45 PM > To: Beau E. Cox > Cc: Modperl > Subject: Re: [mp2] apache/mod_perl starup failure using cvs 09 > > > Beau E. Cox wrote: > > Yea, S

Re: Apache::DBI on mp2

2003-03-05 Thread Stas Bekman
Ask Bjoern Hansen wrote: On Wed, 5 Mar 2003, Stas Bekman wrote: Great. I've already committed that patch. Perhaps Ask could load 'Apache::compat' inside Apache::DBI if mp2 is used. Or to use the mp2 API if mp2 is used. That seems like it'll be an easy solution. I th

Re: Apache::DBI on mp2

2003-03-05 Thread Ask Bjoern Hansen
On Wed, 5 Mar 2003, Stas Bekman wrote: > Great. I've already committed that patch. > > Perhaps Ask could load 'Apache::compat' inside Apache::DBI if mp2 is used. Or > to use the mp2 API if mp2 is used. That seems like it'll be an easy solution. I thought loading

Re: [mp2] apache/mod_perl starup failure using cvs 09

2003-03-05 Thread Stas Bekman
Beau E. Cox wrote: Yea, Stas, I clearly see your reasoning. However, this is not a change of behaviour between mp1 and mp2, but rather between mp2-08 and the current cvs (09). since 09 > 08, it *is* a change in behaviour between mp1 and mp2 ;) though potentially not the final one. I w

RE: [mp2] apache/mod_perl starup failure using cvs 09

2003-03-05 Thread Beau E. Cox
> -Original Message- > From: Stas Bekman [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 04, 2003 9:23 PM > To: Beau E. Cox > Cc: Modperl > Subject: Re: [mp2] apache/mod_perl starup failure using cvs 09 > > > [...] > > >>why does Mason need

Re: [mp2] apache/mod_perl starup failure using cvs 09

2003-03-04 Thread Stas Bekman
ied on Apache->request's not being defined as a side-effect to test whether you are inside request or not. I will explain why I've chosen to croak, rather than return 'undef'. In mp1 Apache->request was either undef (outside of request) or $r (during the request). You

RE: [mp2] apache/mod_perl starup failure using cvs 09

2003-03-04 Thread Beau E. Cox
Hi Stas - > -Original Message- > From: Stas Bekman [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 04, 2003 6:18 PM > To: Beau E. Cox > Cc: Modperl > Subject: Re: [mp2] apache/mod_perl starup failure using cvs 09 > > > Beau E. Cox wrote: > > -

Re: [mp2] apache/mod_perl starup failure using cvs 09

2003-03-04 Thread Stas Bekman
Beau E. Cox wrote: -8<-- Start Bug Report 8<-- 1. Problem Description: Sorry - is this mason's problem? Apache does not start using latest mod_perl2 (cvs) when using a mason startup script. Failure matrix: mod_perl version mason version using s

[mp2] apache/mod_perl starup failure using cvs 09

2003-03-04 Thread Beau E. Cox
-8<-- Start Bug Report 8<-- 1. Problem Description: Sorry - is this mason's problem? Apache does not start using latest mod_perl2 (cvs) when using a mason startup script. Failure matrix: mod_perl version mason version using startup.pl using

RE: [mp2] Latest mod_perl funny test results

2003-03-04 Thread Beau E. Cox
Hi Stas - > -Original Message- > From: Stas Bekman [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 04, 2003 4:01 PM > To: Beau E. Cox > Cc: Modperl > Subject: Re: [mp2] Latest mod_perl funny test results > > > Beau E. Cox wrote: > > Hi - > > >

Re: [mp2] Latest mod_perl funny test results

2003-03-04 Thread Stas Bekman
Beau E. Cox wrote: Hi - I just upgraded to Apache 2.0.44 (source) and mod_perl-1.99-09-dev (CVS source) on my SuSE 8.1 test server. All test scripts completed OK. I am omitting the details of my configuration - will supply them if anyone thinks this problem is related to them. As I have with prior

[mp2] Latest mod_perl funny test results

2003-03-04 Thread Beau E. Cox
Hi - I just upgraded to Apache 2.0.44 (source) and mod_perl-1.99-09-dev (CVS source) on my SuSE 8.1 test server. All test scripts completed OK. I am omitting the details of my configuration - will supply them if anyone thinks this problem is related to them. As I have with prior installations, I

Re: Apache::DBI on mp2

2003-03-04 Thread Stas Bekman
your alternate solution as mentioned below. If I find some free time (what are the chances?) I may also give DBI::Pool a try under mp2. I've already tried it and it works ;) However DBI::Pool won't have a life on its own and will be integrated into DBI itself and its DBD drivers. SB> [.

Re: Apache::DBI on mp2

2003-03-04 Thread Haroon Rafique
s mentioned below. If I find some free time (what are the chances?) I may also give DBI::Pool a try under mp2. SB> [..snip..] SB> SB> If you apply the following patch (will commit it soon) against the modperl-2.0 SB> source, you will be able to use connect_on_init unmodified, assumi

Re: [mp2] disabling a perl handler within a specific location

2003-03-04 Thread Thomas Klausner
Hi! On Tue, Mar 04, 2003 at 12:54:30AM -0500, Matt Avitable wrote: > Does anyone know how one goes about disabling a particular handler > within a specific location? For example, consider the following: > > > PerlInitHandler config > PerlOutputFilterHandler filter > >

Re: [mp2] disabling a perl handler within a specific location

2003-03-03 Thread Stas Bekman
bles and run an xml filter. It's useless overhead to run these handlers on images. This is not really a mp2 specific question I believe, unless I'm missing something. You have to do the same in mp1. I guess there might be a way to do that, but the simplest idiomatic modperl approach

[mp2] disabling a perl handler within a specific location

2003-03-03 Thread Matt Avitable
Hi list :-) Does anyone know how one goes about disabling a particular handler within a specific location? For example, consider the following: PerlInitHandler config PerlOutputFilterHandler filter ## what can I put here to say "don't run" to the above handl

Re: Apache::DBI on mp2

2003-03-03 Thread Stas Bekman
follows: Apache/2.0.44 (Gentoo/Linux) mod_perl/1.99_08 Perl/v5.8.0 mod_perl was built from CVS. I was interested in getting Apache::DBI to run under mp2. I did read Ask's message at http://marc.theaimsgroup.com/?l=apache-modperl&m=104225578207460&w=2 which leads me to my question.

Apache::DBI on mp2

2003-03-03 Thread Haroon Rafique
My setup is as follows: Apache/2.0.44 (Gentoo/Linux) mod_perl/1.99_08 Perl/v5.8.0 mod_perl was built from CVS. I was interested in getting Apache::DBI to run under mp2. I did read Ask's message at http://marc.theaimsgroup.com/?l=apache-modperl&m=104225578207460&w=2 which l

Re: mp2 runs scripts as root?

2003-03-01 Thread Stas Bekman
Mark James wrote: Stas Bekman wrote: Mark James wrote: Some of my scripts break when running under mp2 (cvs) because the UID is set as root rather than the Apache user (which for me is "web"). The problem manifests with RCS file locking. Is there some switch to set so that I can run

Re: [mp2] what is and why is it my log?

2003-03-01 Thread Ask Bjoern Hansen
On Thu, 20 Feb 2003, Nick Tonkin wrote: > > >>In my logs when dumping a warn() I see this occasionally: > > >> > > >>192.168.0.24 at /home/wm/perl/WM/Auth/Access.pm line 28. > > >>192.168.0.24 at /home/wm/perl/WM/Auth/Access.pm line 28. > > >>192.168.0.24 at /home/wm/perl/WM/Auth/Access.pm line 28

Fwd: Re: [MP2] Apache::Reload date bug

2003-03-01 Thread Ron Savage
--- Original Message --- From: "Stas Bekman" <[EMAIL PROTECTED]> To: Ron Savage <[EMAIL PROTECTED]> Cc: Sent: Sat, 01 Mar 2003 12:47:39 +1100 Subject: Re: [MP2] Apache::Reload date bug >Ron Savage wrote: >>On Tue, 25 Feb 2003 09:40:05 +1100, Stas Bekman wrote: >

Re: mp2 runs scripts as root?

2003-03-01 Thread Mark James
Stas Bekman wrote: Mark James wrote: Some of my scripts break when running under mp2 (cvs) because the UID is set as root rather than the Apache user (which for me is "web"). The problem manifests with RCS file locking. Is there some switch to set so that I can run scripts as "we

Re: mp2 runs scripts as root?

2003-02-28 Thread Stas Bekman
Mark James wrote: Some of my scripts break when running under mp2 (cvs) because the UID is set as root rather than the Apache user (which for me is "web"). The problem manifests with RCS file locking. Is there some switch to set so that I can run scripts as "web"? Eh? Are you

mp2 runs scripts as root?

2003-02-28 Thread Mark James
Some of my scripts break when running under mp2 (cvs) because the UID is set as root rather than the Apache user (which for me is "web"). The problem manifests with RCS file locking. Is there some switch to set so that I can run scripts as "web"?

Re: mp2: works with NetBSD? was Re: mp2: anyone got mp2 and apache2.0.44 working on any version of OpenBSD?

2003-02-27 Thread Stas Bekman
Carl Brewer wrote: Stas Bekman wrote: Carl Brewer wrote: As no-one seems interested in this after a few weeks, It's not about not being interested, but lacking the access to the system and/or lacking the expertise on these platforms. We really need to have at least one person taking care of

Re: mp2: works with NetBSD? was Re: mp2: anyone got mp2 and apache2.0.44 working on any version of OpenBSD?

2003-02-27 Thread Carl Brewer
Stas Bekman wrote: Carl Brewer wrote: As no-one seems interested in this after a few weeks, It's not about not being interested, but lacking the access to the system and/or lacking the expertise on these platforms. We really need to have at least one person taking care of problems on each of

Re: mp2: works with NetBSD? was Re: mp2: anyone got mp2 and apache2.0.44 working on any version of OpenBSD?

2003-02-27 Thread Stas Bekman
Carl Brewer wrote: As no-one seems interested in this after a few weeks, It's not about not being interested, but lacking the access to the system and/or lacking the expertise on these platforms. We really need to have at least one person taking care of problems on each of the less-mainstream pla

mp2: works with NetBSD? was Re: mp2: anyone got mp2 and apache 2.0.44working on any version of OpenBSD?

2003-02-27 Thread Carl Brewer
As no-one seems interested in this after a few weeks, I'm considering NetBSD ... anyone got mod_perl2 and apache2 running nicely on NetBSD 1.6? That's my next-choice O/S for my application, but I don't have a testbed yet to play with. Carl Carl Brewer wrote: Scanning both dev.modperl and here,

Re: [MP2] Apache::Reload date bug

2003-02-27 Thread Ron Savage
On Wed, 26 Feb 2003 22:30:51 -0600 (CST), Randy Kobes wrote: >On Thu, 27 Feb 2003, Ron Savage wrote: > >>On Wed, 26 Feb 2003 09:23:39 +1100, Stas Bekman wrote: HI Randy >The mod_perl 2 ppm package (for ActivePerl 8xx) at >http://theoryx5.uwinnipeg.ca/ppms/ is updated >periodically with a cvs buil

Re: [MP2] Apache::Reload date bug

2003-02-26 Thread Randy Kobes
On Thu, 27 Feb 2003, Ron Savage wrote: > On Wed, 26 Feb 2003 09:23:39 +1100, Stas Bekman wrote: > > Hi Stas > > >Have you tried the current mod_perl cvs? > > No. Being usually a Windows (shudder) user, I wait for Randy to issue > a build. The mod_perl 2 ppm package (for ActivePerl 8xx) at htt

Re: [MP2] Apache::Reload date bug

2003-02-26 Thread Ron Savage
On Wed, 26 Feb 2003 09:23:39 +1100, Stas Bekman wrote: Hi Stas >Have you tried the current mod_perl cvs? No. Being usually a Windows (shudder) user, I wait for Randy to issue a build. Today I spent 4 hours failing to install Red Hat 6, Red Hat 8 and Mandrake 9 on a brand new Dell with a 82854G/

Re: [MP2] Apache::Reload date bug

2003-02-25 Thread Stas Bekman
Ron Savage wrote: On Tue, 25 Feb 2003 09:40:05 +1100, Stas Bekman wrote: And what your error_log says? Nothing is output to the error_log. Have you tried the current mod_perl cvs? __ Stas BekmanJAm_pH --> Just Anot

Re: [MP2] Apache::Reload date bug

2003-02-24 Thread Ron Savage
On Tue, 25 Feb 2003 09:40:05 +1100, Stas Bekman wrote: >And what your error_log says? Nothing is output to the error_log. -- Cheers Ron Savage, [EMAIL PROTECTED] on 25/02/2003 http://savage.net.au/index.html

Re: [MP2] Apache::Reload date bug

2003-02-24 Thread Stas Bekman
Ron Savage wrote: On Wed, 19 Feb 2003 10:04:02 +1100, Stas Bekman wrote: Ron Savage wrote: On Tue, 18 Feb 2003 12:56:38 +1100, Stas Bekman wrote: Hi Folks In endeavouring to reproduce this problem, I've encountered another: main.cgi: -><8- #!/usr/bin/perl use strict; use warnings; use C

[mp2] mod_perl2 + XML::LibXML = OK ?

2003-02-24 Thread Kurt George Gjerde
Hi, Are there any problems using XML::LibXML and XML::LibXSLT with mod_perl 2 (perl 5.8)? (everything is the latest versions as grabbed from Randy's site ;) win32). My primary concern is thread-safety (is XML::LibXML thread-safe?), but anything I should be aware about would be nice to know. Th

Re: [MP2] Apache::Reload date bug

2003-02-24 Thread Ron Savage
On Wed, 19 Feb 2003 10:04:02 +1100, Stas Bekman wrote: >Ron Savage wrote: >>On Tue, 18 Feb 2003 12:56:38 +1100, Stas Bekman wrote: Hi Folks In endeavouring to reproduce this problem, I've encountered another: main.cgi: -><8- #!/usr/bin/perl use strict; use warnings; use CGI; use Dummy;

Re: [mp2] send_http_header() can't be called before the responsephase

2003-02-23 Thread Nick Tonkin
On Thu, 20 Feb 2003, Stas Bekman wrote: > Stas Bekman wrote: > > Nick Tonkin wrote: > [...] > >> send_http_header() can't be called before the response phase > > Nick, I've just committed a better solution. Please verify that it works for you. Now that the uri bug is fixed, this fix works fine, S

mp2: a new helper module: ModPerl::MethodLookup

2003-02-23 Thread Stas Bekman
I've just committed a new module, called ModPerl::MethodLookup to figure out which modules to load for wanted functionality, or to simply preload all mod_perl modules. For more info see: http://perl.apache.org/docs/2.0/api/ModPerl/MethodLookup.html ___

Re: [mp2] Cookie behavior discrepancy in Auth* handlers ?

2003-02-22 Thread Nick Tonkin
sHandler. Responding to my own post here, to keep the archive complete. (That's the only reason, since there doesn;t seem to be anyone else using cookies for auth stuff in mp2 ...) Testing has shown that the first diagnosis was correct. Stas tracked it down to %ENV not getting populated prior

Re: mp2: any recommendations for template systems yet?

2003-02-21 Thread Perrin Harkins
On Fri, 2003-02-21 at 16:10, Udlei Nattis wrote: > you can use Ananke::Template > > is one version of template::toolkit but very very very very fast I wouldn't really call it a version of Template Toolkit. It's much more like HTML::Template: a very streamlined templating tool with an intentional

Re: mp2: any recommendations for template systems yet?

2003-02-21 Thread Udlei Nattis
you can use Ananke::Template is one version of template::toolkit but very very very very fast []s nattis Josh Chamas wrote: Perrin Harkins wrote: On Thu, 2003-02-20 at 22:27, Carl Brewer wrote: Do any of you have any recommendations for template systems with mp2? Not of the religious kind

Re: mp2: any recommendations for template systems yet?

2003-02-21 Thread Josh Chamas
Perrin Harkins wrote: On Thu, 2003-02-20 at 22:27, Carl Brewer wrote: Do any of you have any recommendations for template systems with mp2? Not of the religious kind (!) but more on the lines of what's working with mp2 at the moment? Everything that doesn't make mod_perl API ca

Re: mp2: any recommendations for template systems yet?

2003-02-20 Thread Gerald Richter
> > > Without wishing to start anything religious ... any suggestions > > for a template system that handles sessions? > > Apache::ASP, Embperl, and Mason all have session support integrated > now. I can't vouch for their stability on mp2 yet though. > Embperl wor

Re: mp2: any recommendations for template systems yet?

2003-02-20 Thread Perrin Harkins
On Thu, 2003-02-20 at 22:27, Carl Brewer wrote: > Do any of you have any recommendations for template systems with > mp2? Not of the religious kind (!) but more on the lines > of what's working with mp2 at the moment? Everything that doesn't make mod_perl API calls should w

mp2: any recommendations for template systems yet?

2003-02-20 Thread Carl Brewer
Do any of you have any recommendations for template systems with mp2? Not of the religious kind (!) but more on the lines of what's working with mp2 at the moment? I'm about to port a PHP app to mod_perl and will be covering IPv6 traffic with it, so (and I want to as well :) ) will h

mp2: anyone got mp2 and apache 2.0.44 working on any version of OpenBSD?

2003-02-20 Thread Carl Brewer
Scanning both dev.modperl and here, I've found a couple of mails concerning OpenBSD and mod_perl 2 (1.99_08) with Apache 2.0.44, I've tried a few quick hacks and have been unable to get it working either, with the same error as seen on : [EMAIL PROTECTED]">http://mathforum.org/epigone/modperl/spo

Re: [mp2] what is and why is it my log?

2003-02-20 Thread Nick Tonkin
On Fri, 21 Feb 2003, Stas Bekman wrote: > Ged Haywood wrote: > > On Thu, 20 Feb 2003, Nick Tonkin wrote: > > > > > >>Hi, > >> > >>In my logs when dumping a warn() I see this occasionally: > >> > >>192.168.0.24 at /home/wm/perl/WM/Auth/Access.pm line 28. > >>192.168.0.24 at /home/wm/perl/WM/Auth/Ac

Re: [mp2] what is and why is it my log?

2003-02-20 Thread Stas Bekman
Ged Haywood wrote: On Thu, 20 Feb 2003, Nick Tonkin wrote: Hi, In my logs when dumping a warn() I see this occasionally: 192.168.0.24 at /home/wm/perl/WM/Auth/Access.pm line 28. 192.168.0.24 at /home/wm/perl/WM/Auth/Access.pm line 28. 192.168.0.24 at /home/wm/perl/WM/Auth/Access.pm line 28. 1

Re: [mp2] porting tip - DefaultType text/html

2003-02-20 Thread Stas Bekman
Nick Tonkin wrote: As the docs say $r->send_http_header is deprecated because it is unneeded in mp2 ... but $r->content_type must be set. Just a minor nit: $r->send_http_header is *not* deprecated, it's *gone*. Since yesterday for it's gone for real and is only availab

Re: [mp2] what is and why is it my log?

2003-02-20 Thread Ged Haywood
On Thu, 20 Feb 2003, Nick Tonkin wrote: > > Hi, > > In my logs when dumping a warn() I see this occasionally: > > 192.168.0.24 at /home/wm/perl/WM/Auth/Access.pm line 28. > 192.168.0.24 at /home/wm/perl/WM/Auth/Access.pm line 28. > 192.168.0.24 at /home/wm/perl/WM/Auth/Access.pm line 28. > 192.

[mp2] what is and why is it my log?

2003-02-20 Thread Nick Tonkin
Hi, In my logs when dumping a warn() I see this occasionally: 192.168.0.24 at /home/wm/perl/WM/Auth/Access.pm line 28. 192.168.0.24 at /home/wm/perl/WM/Auth/Access.pm line 28. 192.168.0.24 at /home/wm/perl/WM/Auth/Access.pm line 28. 192.168.0.24 at /home/wm/perl/WM/Auth/Access.pm line 28, line

[mp2] porting tip - DefaultType text/html

2003-02-20 Thread Nick Tonkin
As the docs say $r->send_http_header is deprecated because it is unneeded in mp2 ... but $r->content_type must be set. DefaultType is set by default to text/plain in httpd.conf, so browsers that strictly apply content_type (eg Opera 7) were showing the content as HTML source. I had s

[mp2] porting tip - must return OK from content-handlers

2003-02-20 Thread Nick Tonkin
I had some handlers that did not explicitly return OK -- just printed the coontent and quit. In apache1/mp1 this 'worked' fine. After migrating to apache2/mp2 these handlers delivered the content to the browser but then printed a 500 error message to the browser but _not_ to the error

Re: [mp2] $r->server()->server_hostname compatibility?

2003-02-19 Thread Stas Bekman
this already, just yesterday. We did. The list is resending mail. Or maybe the mail was trying to get through? weird It's not quite the same: it's $r->get_server_name or $r->server->server_name in mp2 versus $r->server->server_hostname in mp1. No, it's

Re: [mp2] $r->server()->server_hostname compatibility?

2003-02-19 Thread Nick Tonkin
t;please? > >> > >>it hasn't changes from 1.0. I thought we have been through this already, just > >>yesterday. > > > > > > We did. The list is resending mail. Or maybe the mail was trying to get > > through? > > weird > > > It&

Re: [mp2] warnings

2003-02-19 Thread Stas Bekman
Nick Tonkin wrote: On Thu, 20 Feb 2003, Stas Bekman wrote: Nick Tonkin wrote: Is it possible to combine the recommended syntax: use warnings FATAL => 'all', NONFATAL => 'redefine'; with the ability to turn warnings on in httpd.conf with PerlSwitches -w? -w is the same as: use warnings

Re: [mp2] $r->server()->server_hostname compatibility?

2003-02-19 Thread Stas Bekman
mail. Or maybe the mail was trying to get through? weird It's not quite the same: it's $r->get_server_name or $r->server->server_name in mp2 versus $r->server->server_hostname in mp1. No, it's exactly the same in mp1 and mp2: $r->server->server_hostnam

Re: [mp2] handler running twice for one request

2003-02-19 Thread Nick Tonkin
On Thu, 20 Feb 2003, Stas Bekman wrote: > Nick Tonkin wrote: > > Hi all, > > > > I my httpd.conf I have: > > > > > > AddType text/html .html > > PerlAccessHandler WM::Auth::Access > > > > > > And in my handler I have: > > > > package WM::Auth::Access; > > > > use strict

Re: [mp2] warnings

2003-02-19 Thread Nick Tonkin
On Thu, 20 Feb 2003, Stas Bekman wrote: > Nick Tonkin wrote: > > Is it possible to combine the recommended syntax: > > > > use warnings FATAL => 'all', NONFATAL => 'redefine'; > > > > with the ability to turn warnings on in httpd.conf with PerlSwitches -w? > > -w is the same as: > >use warning

Re: [mp2] $r->server()->server_hostname compatibility?

2003-02-19 Thread Nick Tonkin
resending mail. Or maybe the mail was trying to get through? It's not quite the same: it's $r->get_server_name or $r->server->server_name in mp2 versus $r->server->server_hostname in mp1. - nick -- Nick Tonkin {|8^)>

Re: [mp2] handler running twice for one request

2003-02-19 Thread Stas Bekman
Nick Tonkin wrote: Hi all, I my httpd.conf I have: AddType text/html .html PerlAccessHandler WM::Auth::Access And in my handler I have: package WM::Auth::Access; use strict; use warnings; use Time::HiRes qw(gettimeofday); sub handler { my $r = shift; my $

Re: [mp2] warnings

2003-02-19 Thread Stas Bekman
Nick Tonkin wrote: Is it possible to combine the recommended syntax: use warnings FATAL => 'all', NONFATAL => 'redefine'; with the ability to turn warnings on in httpd.conf with PerlSwitches -w? -w is the same as: use warnings 'all'; then you can override things in your code using the warn

Re: [mp2] $r->server()->server_hostname compatibility?

2003-02-19 Thread Stas Bekman
Nick Tonkin wrote: server_hostname is not documented on the list. Anyone know the equivalent please? it hasn't changes from 1.0. I thought we have been through this already, just yesterday. __ Stas BekmanJAm_pH -

Re: [mp2] $mod_perl::VERSION not defined

2003-02-19 Thread Stas Bekman
User NICKNick Tonkin wrote: Following the docs at http://perl.apache.org/docs/2.0/devel/porting/porting.html#Adjusting_Modules_to_Work_with_1_0_and_2_0_ I am trying to test $mod_perl::VERSION but it is undef. Any clues? use mod_perl; ? ___

[mp2] handler running twice for one request

2003-02-19 Thread Nick Tonkin
Hi all, I my httpd.conf I have: AddType text/html .html PerlAccessHandler WM::Auth::Access And in my handler I have: package WM::Auth::Access; use strict; use warnings; use Time::HiRes qw(gettimeofday); sub handler { my $r = shift; my $s = $r->server;

[mp2] warnings

2003-02-19 Thread Nick Tonkin
Is it possible to combine the recommended syntax: use warnings FATAL => 'all', NONFATAL => 'redefine'; with the ability to turn warnings on in httpd.conf with PerlSwitches -w? - nick Nick Tonkin {|8^)>

[mp2] $r->server()->server_hostname compatibility?

2003-02-19 Thread Nick Tonkin
server_hostname is not documented on the list. Anyone know the equivalent please? - nick

[mp2] $mod_perl::VERSION not defined

2003-02-19 Thread User NICKNick Tonkin
Following the docs at http://perl.apache.org/docs/2.0/devel/porting/porting.html#Adjusting_Modules_to_Work_with_1_0_and_2_0_ I am trying to test $mod_perl::VERSION but it is undef. Any clues? Thanks, - nick

Re: [mp2] send_http_header() can't be called before the responsephase

2003-02-19 Thread Nick Tonkin
On Thu, 20 Feb 2003, Stas Bekman wrote: > Stas Bekman wrote: > > Nick Tonkin wrote: > [...] > >> send_http_header() can't be called before the response phase > > Nick, I've just committed a better solution. Please verify that it works for you. I'll have a go as soon as poss. - nick -- ~

Re: [mp2] send_http_header() can't be called before the responsephase

2003-02-19 Thread Stas Bekman
Stas Bekman wrote: Nick Tonkin wrote: [...] send_http_header() can't be called before the response phase Nick, I've just committed a better solution. Please verify that it works for you. __ Stas BekmanJAm_pH -->

[mp2] Cookie behavior discrepancy in Auth* handlers ?

2003-02-19 Thread Nick Tonkin
Hi all, Cookies driving me nuts as usual but I think the problem appears to be related to which handler phase we are in. Basically, the same call to read the cookies works in the PerlHandler but not in the PerlAccessHandler. in Access.pm I have : use CGI; use CGI::Cookie; sub handler { my

Re: [MP2] Apache::Reload date bug

2003-02-18 Thread Stas Bekman
Randy Kobes wrote: On Wed, 19 Feb 2003, Stas Bekman wrote: Ron Savage wrote: On Tue, 18 Feb 2003 12:56:38 +1100, Stas Bekman wrote: perl -le 'warn("foo\n")' You got the quotes wrong for MS Windows, so I ran it twice: C:\Backup>perl -le "warn(qq|foo\n|)" foo C:\Backup>perl -le 'warn("fo

Re: [mp2] send_http_header() can't be called before the responsephase

2003-02-18 Thread Stas Bekman
Nick Tonkin wrote: Hey, I have a handler that is called like this: sethandler perl-script PerlHandler WM::Auth::Auth the handler returns like this: return logon_form($r); logon_form starts like this: sub logon_form { my $r = shift; $r->status(Apache::O

Re: [MP2] Apache::Reload date bug

2003-02-18 Thread Randy Kobes
On Wed, 19 Feb 2003, Stas Bekman wrote: > Ron Savage wrote: > > On Tue, 18 Feb 2003 12:56:38 +1100, Stas Bekman wrote: > > > >>perl -le 'warn("foo\n")' > > > > You got the quotes wrong for MS Windows, so I ran it twice: > > > > C:\Backup>perl -le "warn(qq|foo\n|)" > > foo > > > > C:\Backup>per

[mp2] send_http_header() can't be called before the response phase

2003-02-18 Thread Nick Tonkin
Hey, I have a handler that is called like this: sethandler perl-script PerlHandler WM::Auth::Auth the handler returns like this: return logon_form($r); logon_form starts like this: sub logon_form { my $r = shift; $r->status(Apache::OK); $r->content

<    1   2   3   4   5   6   7   >