Re: Segfault when connecting during Apache startup with Apache::DBI

2008-06-30 Thread Frank Maas
On Mon, Jun 30, 2008 at 10:54:20AM +0200, Tobias Kremer wrote: > Any other ideas? Thanks! It could be that your query(result) is too large for the 'max_allowed_packet' setting. The mysql-client that is connected to your process will then silently die, giving the 'Lost mysql...' error as result.

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

2008-04-14 Thread Frank Maas
> 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 POST? (There is onl

MapToStorage and the use of path_info (was Re: return DECLINED...)

2008-02-29 Thread Frank Maas
Hi, In an explanation to J. Peng you wrote some interesting bits that I put in a condensed form below. Now you mentioned in another mail that the subject has shifted a bit, so I changed the subject and dehooked this mail from the thread. Because there is something that "worries" me... > As for

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

2007-01-15 Thread Frank Maas
On Sat, Jan 13, 2007 at 02:52:03PM -0500, Perrin Harkins wrote: > Frank Maas wrote: > >I have installed version 2.2.3 of apache and want to install > >2.0.3 of MP. Compiling it gives no problems, but 'make test' fails on > >four files. All fail on the authentica

MP 2.0.3 & Apache 2.2.3 -> auth tests fail

2007-01-13 Thread Frank Maas
Dear group, I filed a bugreport, but got zilch response, so either I am doing something very stupid, or the mail escaped the attention. I'll try again... I have installed version 2.2.3 of apache and want to install 2.0.3 of MP. Compiling it gives no problems, but 'make test' fails on four files.

[bugreport] Several (auth) tests fail for 2.0.3 (?)

2006-12-30 Thread Frank Maas
I have an SVN of ModPerl 2.0.3 RC1 installed which works (after a slight tweak of a test), but now 2.0.3 is released I like to upgrade. However... the test suite fails a couple of times. I tried to look for the cause of the problem, but was unable to (sorry if it is something obvious).

RE: Dumping / Profiling Memory ?

2006-08-16 Thread Frank Maas
> the loss happens directly after the tie. Which one? The first, the latter or both? Regards, Frank

RE: handlers

2006-08-01 Thread Frank Maas
> Frank Maas wrote: > >> On Tue, Aug 01, 2006 at 07:33:51AM +0100, John ORourke wrote: >> >> >>> You could even do something really clever and make it map URI onto >>> module - eg. so /debitor/contract/create calls >>> Debitor::Contract-&

Re: handlers

2006-08-01 Thread Frank Maas
On Tue, Aug 01, 2006 at 07:33:51AM +0100, John ORourke wrote: > > You could even do something really clever and make it map URI onto > module - eg. so /debitor/contract/create calls > Debitor::Contract->create(), but that wouldn't be very secure! > Why would that be not very secure? Could you g

RE: Can't use mysql stored procedures under mod_perl (although they work directly from Perl)

2006-07-31 Thread Frank Maas
> -8<-- Start Bug Report 8<-- > 1. Problem Description: > > I'm trying to use stored procedures in a mysql database from within a perl > script. > A simple test script runs fine from a command-line perl interpreter, and > runs fine > when invoked via CGI. >

RE: can PerlTransHandler deal with this?

2006-05-11 Thread Frank Maas
> I think i'm using the wrong handler, but is there any handler can handle > this problem? As far as I can remember mod_rewrite kicks in after a PerlTransHandler. This should enable you to use a TransHandler to rewrite the URI based on the database contents, eg: http://o.example.com/2.gif -> h

RE: [mp2] 2nd content_type is ignored?

2006-04-28 Thread Frank Maas
> but the thing about output filters is they should do something like > > return DECLINED unless $r->content_type =~ m/something_I_can_handle/; > > so your xml filter should decline (or better, remove itself) from the > filter chain if it's not xml you're being asked to process. yup, I'll tell

RE: [mp2] 2nd content_type is ignored?

2006-04-28 Thread Frank Maas
>> This object does some basic things for generating XML, hence the >> content_type. This, again, works fine. Now the problem - if an >> unexisting action for this "XML subclass" is requested, the AUTOLOAD >> kicks in. The AUTOLOAD sets the content-type back to HTML >> ($r->content_type('text/html'

[mp2] 2nd content_type is ignored?

2006-04-28 Thread Frank Maas
Hi I am experiencing a problem that I do not see solved or named in the mailing list, but this can be due to my lack of search terms. So I try here and hope not to get flamed. The problem bearer is content_type. I have created some inheriting objects that deal with handling a certain request.

No image creation in mod_perl (was RE: Apache2/MP2 Segfaults ...)

2006-03-27 Thread Frank Maas
Tom, > As a sidenote often it is not really desired/dangerous to run image > creation as a mod_perl handler because of the nature of perl, memory > allocated once is never freed until the process shutdowns or is killed > (by your Apache::SizeLimit handler). Ah, you got me worried there... How in

RE: find all uninitialized variables?

2006-02-22 Thread Frank Maas
>Is there an easy way (a tool) to locate all uninitialized variables for >modperl >modules in a dirctory so I can initilized them and get rid of the annoying >warnings? Googlling on the internet seems no useful results. Some one shield >me a light? Does not seem to be a specifiec mod_perl th

Re: MP2 PerlTransHandler and VirtualHosts

2006-02-16 Thread Frank Maas
On Thu, Feb 16, 2006 at 11:31:00AM -0500, Geoffrey Young wrote: > > > Peter, Attila wrote: > > I did return DECLINED since I've read the documentation > > and it was clear to me that I had to return DECLINED, > > however, the handlers seemed to get stacked. > > > > So what happens is that if my

RE: Maintainer of Apache::DBI [was: ...OPI/Apache-DBI-Cache-0.06.tar.gz]

2005-12-05 Thread Frank Maas
(put back on the list as per request) >> On Mon, Dec 05, 2005 at 12:11:29PM +0100, Enrico Sorcinelli wrote: >>> On Mon, 5 Dec 2005 11:47:59 +0100 >>> Frank Maas <[EMAIL PROTECTED]> wrote: >>> >>> on 20 Aug 2005, Philip M. Gollucci take over the m

Re: Fwd: PAUSE indexer report OPI/Apache-DBI-Cache-0.06.tar.gz

2005-12-05 Thread Frank Maas
On Sun, Dec 04, 2005 at 10:45:03AM +0100, Enrico Sorcinelli wrote: > > Have you contacted Apache::DBI maintainer in order to integrate your work with > that module? I have the distinct impression that the maintainer is too busy to respond. If I am not mistaken Philippe has tried this with no res

Re: [MP2] Disable Perl*Handlers for sublocations

2005-10-19 Thread Frank Maas
On Wed, Oct 19, 2005 at 11:15:18AM -0400, Garrison Hoffman wrote: > > This really has more to do with Apache than mod_perl. Look at the > Apache docs for mod_access & RemoveHandler. > > http://httpd.apache.org/docs/2.0/ > > Anything you can override, you can also restore. In the case of > auth

[MP2] Disable Perl*Handlers for sublocations

2005-10-13 Thread Frank Maas
AuthzHandler and a PerlFixupHandler for / and would like to disable all for /images. Is that at all possible (with MP2)? And if so: how? Met vriendelijke groet / Kind regards, Frank Maas Cheiron IT bv

RE: index.pl not default, even when specified

2005-09-28 Thread Frank Maas
> I tried wrapping the DirectoryIndex (in the main config area) around > this IfModule tag..problem persists. Yeah well, that is no surprise, the IfModule tag just removes the tags within the container if the module does not exist. I agree with Perrin that you are probably touching on a non mo

RE: handler object: data sometimes resetting

2005-09-28 Thread Frank Maas
> Thanks, Frank, thanks, Damyan, for your answers. > > I've add testing info to my script, as you recommend: > > Editing: [2612]8068957.60529976$self current=0 > Editing: [2613]8068957.60529976$self current=0 > Editing: [2614]8068957.60529976$self current=0 > Editing: [2614]8068957.60529976$self

RE: index.pl not default, even when specified

2005-09-27 Thread Frank Maas
> Changing the extension does not allow the page to come up as default > (even when changing the DirectoryIndex to reflect the extension > change). Now I know you don't want this in the end, but what happens if you add 'AddHandler perl-script .pl' to your configuration? And are you sure no other

RE: index.pl not default, even when specified

2005-09-27 Thread Frank Maas
Dickon, > I'm having trouble with my default index file (DirectoryIndex) in > Apache What happens if you move (or copy) the DirectoryIndex definition into the directory container for the perl scripts. Thus: > > ServerName 10.1.1.249 > DocumentRoot /usr/local/www/data/ > UseCanon

RE: handler object: data sometimes resetting

2005-09-27 Thread Frank Maas
Hi, I think you've just come accross the fact that in a normal setup there is more than one httpd process (and thus more than one perl interpreter) that is serving your requests. As each process starts at the same time and each perl interpreter has its own memory space, the fact that both creation

Re: Storable Freeze/thaw - Size Limits - 65535 (?)

2005-09-18 Thread Frank Maas
On Sun, Sep 18, 2005 at 10:43:09PM -0700, Bill Whillers wrote: > When using Storable freeze/thaw to work with basic object (hash) storage > within a mysql db (blob column), I can't seem to get any more than 65535 > bytes stored. You touched the limit of a BLOB, which is limited to 2^16 bytes. Ch

RE: Scope Question

2005-08-20 Thread Frank Maas
Guys, I am getting a bit nervous and since it is Saturday and I am -1 day before a deadline, this is not good. So, although this thread (and my question) is drifting towards basic Perl, I try my luck. I make use of the following construction package A::B::C; my %CFG = ( some_tag => some_config,

RE: Eagle book RandPicture.pm, $r->internal_redirect, and IE 6.0 showing same image every time

2005-07-06 Thread Frank Maas
> Frank Maas wrote: > >> What you can try is to update the Last-Modified header on each >> request. Bear in mind that this won't work for requests that are made >> within the same second. To probably state the obvious: it is >> necessary that you set the hea

RE: Eagle book RandPicture.pm, $r->internal_redirect, and IE 6.0 showing same image every time

2005-07-03 Thread Frank Maas
Davind, IMHO the problem is hidden in the headers...: > [EMAIL PROTECTED]:~$ head -n 12 picture.2 > HTTP/1.1 200 OK > Date: Fri, 01 Jul 2005 23:36:53 GMT > Server: Apache/1.3.33 (Debian GNU/Linux) mod_perl/1.29 > Last-Modified: Wed, 04 Jun 2003 06:53:10 GMT > ETag: "1064b-515f-3edd9756;42c4b3fd"

RE: Declaring variables in a required script

2005-06-27 Thread Frank Maas
Bram, > I'm sorry if this question has already been answered, but I couldn't > find the answer. It looks very much as if you are not using mod_perl. Your code does not contain handlers gives that away. So your problem is most likely not going to be solved on this list. If you are really using mo

RE: using stacked_handlers()

2005-06-15 Thread Frank Maas
Hello Arshavir, > I am trying to use the stacked handlers functionality but cannot seem > to get it working. What I have is the following 2 modules: > > package Test; [...] > $r->push_handlers(PerlResponseHandler => 'Test1::handler'); > > package Test1; [...] > sub handler { [...] > > >

[OT] Re: a mystery.. need help

2005-05-29 Thread Frank Maas
Hi, (a) this is a modperl list. your question seems a general perl issue, please use the appropriate channels for this - not this list. (b) whatever channel you choose for your question, be sure to give information about what you are trying to achieve, what goes wrong, what you tried to solve t

Re: [mp1] post2get and multipart/form-data

2005-05-07 Thread Frank Maas
Hi Stas, Thanks for responding. > >this work I convert POST requests to GET requests (so the parameters are > >not lost, based on a Geoff-example) and make sure that they get populated > >to the subrequest (via a transhandler). This works... worked :-( > > what has changed since it was working?

[mp1] post2get and multipart/form-data

2005-05-06 Thread Frank Maas
Hi, After some time doing other things, I recently started to upgrade our installation. While doing this I got the new version of CGI.pm that uses XHMTL for default and, as a result, uses multipart/form-data as default encoding... Our websystem works in a 2-phase manner: a user requests an URI and

Re: Apache::DBI with multiples databases...

2004-10-12 Thread Frank Maas
On Tue, Oct 05, 2004 at 10:27:19PM +0200, Perrin Harkins wrote: > > Remember, Apache::DBI doesn't share these connections between processes > -- every process will need to open a connection to all three databases. If the databases all reside on the same server, you could initiate one connection (

Re: multiple users on a single machine

2004-07-18 Thread Frank Maas
On Sun, Jul 18, 2004 at 12:32:00PM -0700, David Arnold wrote: > > Suppose that student A logs into our main page using his username and > [...] > information into a waiting PDF document. My first question is this: Is the > username and password that student A used to login available to this next >

OT: mod_perl mail caught in spamtrap

2004-06-22 Thread Frank Maas
Just so you know... mail.apache.org (aka hermes.apache.org with IP 209.237.227.199) is listed in a SPEWS list (Level 1 to be exact, see http://www.spews.org/ask.cgi?x=209.237.227.199). Unfortunately this means that mail from the mod_perl list, that is sent through this server, can be marked SPAM

RE: Configuration problems

2004-06-14 Thread Frank Maas
> David Arnold wrote: >> Oooh! that's easy. Just change one line of rocks.pl. That is, change >> >> print "Content-type: text/plain\n\n"; >> to >> print "Content-type: text/html\n\n"; >> >> And all is well. > > Strange. It looks like a problem in your browser then. text/plain is > a fine content

Re: mod_perl presence at OSCON (and other CONs) is at danger

2004-06-08 Thread Frank Maas
On Tue, Jun 08, 2004 at 05:43:23PM -0400, Perrin Harkins wrote: > > > With this background, I found the documentation on mod_perl 2 > > difficult for a new user. > > As you say, this is partly because you chose to start with > Apache/mod_perl 2. The documentation for mod_perl 1 is more > approac

RE: "MySQL server has gone away"

2004-03-23 Thread Frank Maas
Hi, > Well, I tried increasing the max packet size, but all that did was decrease > the frequency of the problem appearing. I increased it from 1MB to 8MB. > Think that was enough? You never send us a code fragment did you? The thing puzzling me is "decrease the frequency"... I agree with Andrew

Caching of SSI pages (some based on authorisation)

2004-02-26 Thread Frank Maas
Hi, I'll start with appologising for being slightly off-topic, although this is the best group I could think of to ask this question. I am running a setup with a webserver, a proxy and the clients. Clients request a page through the proxy and the webserver creates every page on the fly. For this

RE: BUG?: POST/GET data loss

2003-12-12 Thread Frank Maas
> Yes, but no error is reported. The page works as if the link was just > "page.html" instead of "page.html?foo=bar&baz=1", but the access-log > has the whole link. Nobody seems to have asked you yet, but could you give some insight into your httpd.conf and handler routine? It might help, certai

Re: help, $apr->param hangs

2003-12-04 Thread Frank Maas
Hi Aleksandr, You say the process hangs here: > read(3, 0x8293b7c, 4096)= ? ERESTARTSYS (To be restarted) > --- SIGWINCH (Window changed) @ 0 (0) --- > read(3, 0x8293b7c, 4096)= ? ERESTARTSYS (To be restarted) > --- SIGWINCH (Window changed) @ 0 (0) --- > read(3, 0

RE: [BUG] Inconsistent $r->print() behavior with references

2003-12-03 Thread Frank Maas
> Let's do this: try to fix it in the next version. If someone > discovers that we broke their code we will revert it. How does it > sound? Gee... not on a technical, but more on a philosophical side: is this a wise thing to do? It means that you have to be damm sure that someone (a) can find out

FW: Capture Windows User Details

2003-11-28 Thread Frank Maas
Jacqui Caren replied to me in stead of the list: > Frank Maas wrote: >>> I would like to know if there is a module that allows me to capture >>> the currently logged in user name of a client accessing a Apache web >>> server. >> >> >> Let me get t

RE: Capture Windows User Details

2003-11-28 Thread Frank Maas
Steve Adams replied to me in stead of the list: > Frank Maas wrote: >>> I would like to know if there is a module that allows me to capture >>> the currently logged in user name of a client accessing a Apache web >>> server. >> >> Let me get this straig

RE: Capture Windows User Details

2003-11-28 Thread Frank Maas
Hi Brett, > I would like to know if there is a module that allows me to capture > the currently logged in user name of a client accessing a Apache web > server. Let me get this straight... You are looking for a module _on the Apache server_ that extracts the name under which the user logged in o

RE: $r losing its class membership

2003-11-19 Thread Frank Maas
> I've encountered a weird, intermittent problem. I have a Perl handler > that handles a certain URL. Sometimes it will fail because the $r > passed to it loses its class. > > The handler starts with: > > sub handler { > use strict; Could you enter the line print STDERR "Handler called with

RE: PerlTransHandler, PerlHanlder and document_root

2003-10-17 Thread Frank Maas
> Hi Frank, [...] >> Can it be that a subrequest (issued (by chance?) to the same child) >> is messing things up? You might try adding a warn to the >> CleanupHandler. > > I guess it could be... what should i be logging for in the > CleanupHandler? (aka, what should i print to see if its a subrequ

RE: PerlTransHandler, PerlHanlder and document_root

2003-10-17 Thread Frank Maas
Simran, Just trying: GH> however, any changes made to $r->document_root GH> would persist for the entire life of the child, not just the life of GH> the current request. for that reason, you were expected to always GH> restore the value of $r->document_root to its original state. GH> GH> see re

Perl 5.8.1 and mod_perl 1?

2003-09-29 Thread Frank Maas
Hi guys, Maybe it's me and I am just missing something here, but what can I expect if I want to use mod_perl 1 together with 5.8.1? All post I saw here were about testing 1.99 (effectively mp2). The thing that got me worried was Stas' remark about the new 1.99_10, which is "the first release to su

RE: perltranshandler stage?

2003-09-28 Thread Frank Maas
> Is it possible to know has a user just clicked on a link or right > clicked and selected "Save link target as" ? > > I've looked at $r->as_string for NN, IE etc. I'd very much doubt it. AFAIK the underlying action in both cases is that the page is fetched from the server. Left click means that