Re: Apache::DBI disconnect?

2000-04-24 Thread John S. Evans
Weird. The whole point of Apache::DBI (or so I understand it) is so that your $dbh stays valid across CGI or Handler calls. I can only think of two reasons why I get the error message: 1) My child process is dying, and the DBI code is telling me that I never called disconnect() on that $dbh. I

Re: Apache::DBI disconnect?

2000-04-24 Thread Tom Mornini
On Mon, 24 Apr 2000, John S. Evans wrote: > Dang. That "delete" code is in the Apache::DBI code (Apache/DBI.pm line > 119). Is this a known bug in Apache::DBI, then? No, I don't know of any problems with Apache::DBI. Typically the error message that you are talking about happens when your $dbh

Potential memory leak?

2000-04-24 Thread Kenneth Lee
Hi all, In my error_log, a few lines of [Wed Apr 19 18:45:10 2000] null: Attempt to free unreferenced scalar. generated during server restart and shutdown. Is this a known potential memory leak documented anywhere? I'm running Apache-1.3.12/Perl-5.6.0/mod_perl-1.22 mod_* is compiled statica

RE: mod_perl 2.x/perl 5.6.x ?

2000-04-24 Thread Gerald Richter
> > In the end, there may still be some threading issues that should > be watched > out for I suspect. If mod_perl 2.0 follows a similar design to > ActiveState's PerlEx, PerlEx also has some problems when the Perl modules > themselves link to stuff that is not threadsafe as a shared library. > Y

Re: Apache::DBI disconnect?

2000-04-24 Thread John S. Evans
Dang. That "delete" code is in the Apache::DBI code (Apache/DBI.pm line 119). Is this a known bug in Apache::DBI, then? -jse > From: Tom Mornini <[EMAIL PROTECTED]> > Date: Mon, 24 Apr 2000 17:49:35 -0700 (PDT) > To: "John S. Evans" <[EMAIL PROTECTED]> > Subject: Re: Apache::DBI disconnect? >

Re: modperl and MIME::Parser

2000-04-24 Thread Jeremy Howard
On Sat, 15 Apr 2000, John S. Evans wrote: > So digging a little deeper (and through the magic of trial and error), the > offending module seems to be Mail::Field. > > It has a bunch of code to dynamically load perl classes for various types of > fields (AddrList, Date, Content-Type, etc), and thi

Re: gensym()

2000-04-24 Thread Nathan Torkington
Ken Williams writes: > Huh? 3-arg open? I haven't seen this in the various writeups of > new 5.6.0 features, and the docs at > http://www.perl.com/CPAN-local/doc/ are still stuck on 5.005_02. My > curiosity is piqued! Here are the examples from the open entry in the perlfunc manpage. open(D

Re: gensym()

2000-04-24 Thread Ken Williams
[EMAIL PROTECTED] (Nathan Torkington) wrote: > >When you have 5.6.0, it's even easier: > > my $fh; > open($fh, "< foobar") or die; > # $fh autovivified to a filehandle > >Whee! You can even use the 3-arg open for maximum delight. Huh? 3-arg open? I haven't seen this in the various writeups

Re: [OT] Proxy Nice Failure

2000-04-24 Thread shane
> I'm getting too sleepy to finish this off, so tomorrow. (I have to I guess I lied. Patch is at: ftp://esdev.net/pub/mod_proxy/modproxybeta1.patch.gz This adds the functionality that Josh was referring to. I'm still thinking of adding the "tagged as down" functionality... maybe tomorrow. If

Apache Notes table

2000-04-24 Thread Matt Sergeant
Do any architectures other than mod_perl and C support access to the Apache notes table? For example, can you write a servlet that accesses the table, or use mod_py, or mod_php, and still have mod_perl process the request (i.e. still have mod_perl be the PerlHandler part of the request) ? The rea

Re: [OT] Proxy Nice Failure

2000-04-24 Thread shane
> > I've been working on the mod_proxy code today, and it appears to me > > that it already has this functionality. It has an apache array > > (really a null terminated link list I'm pretty sure) of proxies it can > > access. You just have to make multiple ProxyPassReverse declarations > > and i

Apache::DBI disconnect?

2000-04-24 Thread John S. Evans
I've been using the Apache::DBI module, and it works great. However, I've noticed that my error_log file has an occasional message that tells me: Database handle destroyed without explicit disconnect at /usr/local/lib/perl5/site_perl/5.005/Apache/DBI.pm line 119. The "offending" line of code is

Re: HTML::Mason and path_info

2000-04-24 Thread Michael Alan Dorman
[EMAIL PROTECTED] (Alexei V. Barantsev) writes: > I have the followin problem: HTML::Mason dhandler could not define > path_info, it tries to select only first part. For example, if my > request is http://server/test/hello/world and dhandler is in /test > it decides that $r->path_info is /hello/.

Re: HTML::Mason and path_info

2000-04-24 Thread Tim Tompkins
Try using $m->dhandler_arg to get the path (note that the leading forward-slash is stripped). Thanks, Tim Tompkins -- Programmer / Staff Engineer http://www.arttoday.com/ - Original Message - From: Alexei V. Barantsev <[EMAIL PROTECTED]> To:

[ANNOUNCE] The Apache XML Delivery Toolkit

2000-04-24 Thread Matt Sergeant
The Apache XML Delivery Toolkit (AXDTK) solves several problems for web developers interested in delivering dynamically transformed XML to clients: - It automatically associates XML documents with stylesheets according to http://www.w3.org/TR/xml-stylesheet - It enables xml stylesheet processor d

Re: Implementing security in CGI

2000-04-24 Thread dreamwvr
hi, actually in order for this flaw to work one must have both enabled on the browser.. was just giving people a heads up since the topic was cookies.. and no IMHO cookies are not required to obtain good info.. On Mon, 24 Apr 2000, Matt Sergeant wrote: > On Mon, 24 Apr 2000, Marc Slemko wrote:

RE: Unknown Error Message

2000-04-24 Thread Ian Mahuron
I get something similar when I wrap my call to Apache::Session::DBI in an eval to try to catch it die()ing (ie. session id not found). IIRC, this is a known bug in perl. >> panic: POPSTACK >> Callback called exit.

Re: OT: (sort of) AuthDBMUserFile

2000-04-24 Thread Bill Jones
PMFFUTMOP: But ... I've determined that the AuthDBMUserFile error I had under Perl was my own scripting cross-eyed fingers and wasn't even related to mod_perl, Apache, nor reality as we know it :) Sorry for the noise! -Sneex- :] - FCCJ * 501 W State St * Jacksonville, Fl 32202 * 904/632-3089

Re: HTML::Mason and path_info

2000-04-24 Thread Kevin Murphy
"Alexei V. Barantsev" wrote: > > Hello, All! > > I have the followin problem: HTML::Mason dhandler could not define > path_info, it tries to select only first part. For example, if my > request is http://server/test/hello/world and dhandler is in /test > it decides that $r->path_info is /hello/.

HTML::Mason and path_info

2000-04-24 Thread Alexei V. Barantsev
Hello, All! I have the followin problem: HTML::Mason dhandler could not define path_info, it tries to select only first part. For example, if my request is http://server/test/hello/world and dhandler is in /test it decides that $r->path_info is /hello/. Looks like the problem appears early - deb

Re: Implementing security in CGI

2000-04-24 Thread Matt Sergeant
On Mon, 24 Apr 2000, dreamwvr wrote: > usally nothing but now everything as per bugtraq advisory.. what this means is > javascript code is inserted into a cookie that is living on a client and > executed there.. they can therefore read your bookmarks and so on.. I shudder at the thought of all t

Re: Implementing security in CGI

2000-04-24 Thread Matt Sergeant
On Mon, 24 Apr 2000, Marc Slemko wrote: > Don't go holding slashdot up as a great example. They is a perfect > example of what not to do. Last I checked, and this is probably still > true, anyone could make a post that, when read, stole the password of the > user reading it if they were logged

Re: Implementing security in CGI

2000-04-24 Thread Marc Slemko
On Mon, 24 Apr 2000, Matt Sergeant wrote: > On Sat, 22 Apr 2000, dreamwvr wrote: > > > hi, > >most likely you will want to shut down cookies and use another method as per > > advisories that currently there is a problem with javascript and cookies when > > both enabled. b.t.w. exploder has

Re: Implementing security in CGI

2000-04-24 Thread dreamwvr
On Mon, 24 Apr 2000, Vivek Khera wrote: > > "d" == dreamwvr <[EMAIL PROTECTED]> writes: > > d> to have cookies are a problem these days. besides most clueful > d> users these days have cookies turned off.. > > According to what survey? I'd like to see some real numbers before > abandoning

Re: Implementing security in CGI

2000-04-24 Thread Matt Sergeant
On Sat, 22 Apr 2000, dreamwvr wrote: > hi, >most likely you will want to shut down cookies and use another method as per > advisories that currently there is a problem with javascript and cookies when > both enabled. b.t.w. exploder has simular problems so since javascript is nice > to have

Re: Installing mod_perl when other things are required, too.

2000-04-24 Thread Vivek Khera
> "FA" == Forrest Aldrich <[EMAIL PROTECTED]> writes: FA> simple ./configure --switch to enable them. I didn't see anything for FA> mod_perl in the INSTALL, and it seemed there were a lot of manual things to FA> be done, which made me think I wasn't reading it correctly. FA> What's the m

Re: Implementing security in CGI

2000-04-24 Thread Vivek Khera
> "d" == dreamwvr <[EMAIL PROTECTED]> writes: d> to have cookies are a problem these days. besides most clueful d> users these days have cookies turned off.. According to what survey? I'd like to see some real numbers before abandoning a very useful technique. "I heard it on TV so it must

Unknown Error Message

2000-04-24 Thread yoav
Hi, I keep getting the following error in the error_log: panic: POPSTACK Callback called exit. What does this mean? They always come together :) Thanks, Yoav

Re: [OT] Lotus Domino as Web server ?

2000-04-24 Thread Andy Johnson
Gunther Birznieks wrote: > Why do you need to settle on one or the other? > > Anyway, the only reason you need Domino IMHO is because you have linked in > with other Lotus notes applications. However, if this is a public site not > an intranet, I would strongly urge them not to use this short c

Re: gensym()

2000-04-24 Thread Nathan Torkington
Matt Sergeant writes: > Nope, but often I do use the TomC "my $fh = do { local *FH; };" method, > because I hate those ugly HANDLE capital letters everywhere - they use up > more bytes than lower case ones... ;-) When you have 5.6.0, it's even easier: my $fh; open($fh, "< foobar") or die;

<:& > tags

2000-04-24 Thread Dennis
Hey   Have anybody heard of <:&   ''some perl code'' > or <:  ''some perl code''    > tags ?   If so, what module is responsible for handling those ?   I think it looks something like SSI, but SSI has different style of tags and SSI

Re: gensym()

2000-04-24 Thread Matt Sergeant
On 24 Apr 2000, (Randal L. Schwartz) wrote: > > "Matt" == Matt Sergeant <[EMAIL PROTECTED]> writes: > > Matt> So do I have to use gensym(), or not? > > As long as you are aware of the package in which the symbol ends up, I > can't see how it'd matter. And nobody uses string indirect > file

Re: gensym()

2000-04-24 Thread Randal L. Schwartz
> "Matt" == Matt Sergeant <[EMAIL PROTECTED]> writes: Matt> So do I have to use gensym(), or not? As long as you are aware of the package in which the symbol ends up, I can't see how it'd matter. And nobody uses string indirect filehandles ($x = 'FH'; print $x 'hello') these days, we'd hope

gensym()

2000-04-24 Thread Matt Sergeant
Is it necessary to use gensym() in a PerlHandler() - it doesn't seem necessary to me. The book says "Ordinary bareword filehandles are prone to namespace clashes". Is that the case for a perl module? I don't think so. When I do: open(FH, $filename) || die "Open failed: $!"; I get *__PACKAGE__::F

Re: adding HTTP Headers

2000-04-24 Thread Jeff Beard
http://www.w3.org/TR/html4/struct/global.html#edef-META Checkout the subheading on META and HTTP headers. --Jeff At 05:18 PM 4/24/00, Jaime Teng wrote: >Hi, > >As I am developing WEB Applications with Apache and modperl, >it came to my attention that there are some pages that I can >'ALLOW' the

Re: Implementing security in CGI

2000-04-24 Thread Kee Hinckley
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 At 2:28 PM -0600 4/22/00, dreamwvr wrote: >to have cookies are a problem these days. besides most clueful users >these days >have cookies turned off.. The percentage of "clueful" users is extremely small. Furthermore, since the vast majority of co

Re: Implementing security in CGI

2000-04-24 Thread Roger Espel Llima
On Sat, Apr 22, 2000 at 02:28:44PM -0600, dreamwvr wrote: > hi, most likely you will want to shut down cookies and use another > method as per advisories that currently there is a problem with > javascript and cookies when both enabled. b.t.w. exploder has simular > problems so since javascript is

adding HTTP Headers

2000-04-24 Thread Jaime Teng
Hi, As I am developing WEB Applications with Apache and modperl, it came to my attention that there are some pages that I can 'ALLOW' the browser to cache the pages; I was able to do just that with modperl by sending out this HTTP Header from within the perl scripts: print "Cache-Control: max-a