-Original Message-
From: ApacheCon US 2008 [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2008 10:49 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [ANN] ApacheCon US and OFBiz Symposium updates; registration open!
Remember: early bird rates go up in mid-August, so register soo
SetHandler modperl doesn't bind 'print' to '$r->print'. Try SetHandler
perl-script, or change your code to pass in the request object and use
$r->print instead of print.
Adam
-Original Message-
From: xyon [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 13, 2008 11:47 AM
To: modperl
Sub
If you're using the stream API like this you'll never see the headers in
$buffer.
I think you would have to modify them using $f->r (the request object),
then abuse the headers_out and/or err_headers_out tables.
I'm not sure if this is the case for the bucket brigade API or not (i've
never used
you can also just to do:
SetHandler modperl
PerlResponseHandler My::Parts::Handler
And handle the validation of the rest of the URL within your ResponseHandler.
You could implement as much depth below /parts as you want. api calls you'll
probably want to use are
$r->location
This might not be any help, but the one time that i ran into this it was
because for some reason traffic to localhost was being blocked by iptables due
to a configuration oversight. You might want to check to make sure that isn't
happening to you.
-Original Message-
From: Colvin, Josh
You can't use it in startup.pl or httpd.conf, but you could create a
PerlInitHandler that runs for the whole site (or part of it) and use it
in there. At least that's another option.
Adam
-Original Message-
From: Geoffrey Young [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 04, 2007
Is this any help?
http://perl.apache.org/docs/2.0/api/Apache2/RequestIO.html#C_rflush_
I'm not sure off hand if $r->print() and print behave differently with
regards to flushing. There's a thread in the archive talking about this
stuff. (http://marc.info/?t=11255795481&r=1&w=2) but it doesn'
That's probably a question for the libapreq list. I know that for me
this was a really annoying thing to have to work around when porting to
MP2. the other thing that changed in apreq is that @params =
$req->param() will now return (a, b, b) for the query string
"?a=1&b=1&b=2" instead of (a, b).
You've said that you've verified that the data is in the DB correctly from the
shell, but it's possible that it's trying to convert to another charset it when
you pull it out for some reason. There seems to be some stuff in the
DBD::Oracle documentation talking about charsets and unicode, i'd s
use Apache::RequestRec;
?
What version of mod_perl are you running? The above line makes me thing
you're running an reall old version of mod_perl2 from prior to the
namespace change, which is probably a really bad idea, and may explain
why Auth isn't working right.
Adam
-Original Message---
If they change really rarely couldln't you just have the children
automatically die off when the stuff needs to change and reload it?
You'd have to create the datastructure using a ChildInit handler i
assume, but couldn't a setup like that potentially work?
Adam
-Original Message-
From
I have encounter the same problem (at least the same symptoms)
thread here:
http://marc.info/?l=apache-modperl&m=114226565622372&w=2
I have never been able to find a true solution, but it is very
intermittent. I worked around it by doing this (which isn't really a
solution at all, and in fact b
http://httpd.apache.org/apreq/docs/libapreq2/group__apreq__xs__request.h
tml#body
$r->body in Apache2::Request (libapreq2)
-Original Message-
From: Carlos Ramirez [mailto:[EMAIL PROTECTED]
Sent: Friday, May 04, 2007 3:00 AM
To: modperl@perl.apache.org
Subject: r->content equivalent in Ap
You're probably using Apache2::RequestUtil in startup.pl, or some other
file you're also use'ing prior if you aren't getting an error already
when you try to call $r->location.
Adam
-Original Message-
From: Jonathan Vanasco [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 03, 2007 12:10 PM
I see this in mp2 when you print to STDERR instead of $r->warn or
$r->log_error, or use one of the other Apache2::Log ways of logging
errors. Not sure if this applies to your situation or not.
-Original Message-
From: Tyler Bird [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 26, 2007 2
I've seen this happen in the past when i was inadvertantly blocking
traffic to localhost with a firewall. Might that be the issue you're
having?
-Original Message-
From: Glenn Pavlovic [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 12, 2007 7:42 PM
To: [EMAIL PROTECTED]
Subject: bugre
rning DECLINED i think.
Adam
-Original Message-
From: Perrin Harkins [mailto:[EMAIL PROTECTED]
Sent: Monday, April 02, 2007 12:29 PM
To: Adam Prime x443
Cc: foobar; modperl@perl.apache.org
Subject: Re: mod_perl2 handler headache
On 4/2/07, Adam Prime x443 <[EMAIL PROTECTED]> wro
That looks ok to me. Is there a ResponseHandler as well for the
gallery, or just the AccessHandler?
The symptoms you're describing seem like OK is getting returned when no
content has been printed. Do you know if headers are even getting sent
with these requests?
adam
-Original Message--
To: modperl@perl.apache.org
Subject: RE: mod_perl2 handler headache
Adam Prime x443 wrote:
>
>
> That looks ok to me. Is there a ResponseHandler as well for the
> gallery, or just the AccessHandler?
>
> The symptoms you're describing seem like OK is getting returned
This may be totally unrelated, but I had a problem that I ultimately
solved by setting up a PerlChildInit handler to open DB connections for
each child explicitly. For some reason it seemed like only one
connection was being opened to connect to the MSSQL DB and that single
connection was somehow
This error only occurs with ap2.2.4 and mp2.0.3, i'm not sure if it's
important or not. Something changed between ap2.2.3 and ap2.2.4 which
causes it. I've just continued running with mp2.0.3 built against
ap2.2.3 until someone can provide a more definative answer to that
question.
Adam
-Or
doesn't exist. Is the correct way to return a 301 to use
Apache2::Const::HTTP_MOVED_PERMANENTLY ? I keep thinking that i've read
somewhere that using the ::HTTP* constants isn't a good idea.
Adam
I just ran into this same error. mod_perl 2.0.3 will build fine against
httpd 2.2.3, but against 2.2.4 it gives this single failed test.
Adam
-Original Message-
From: Octavian Rasnita [mailto:[EMAIL PROTECTED]
Sent: Saturday, January 13, 2007 4:17 AM
To: modperl@perl.apache.org
Subje
try running httpd -S to get apache to split out it's vhost config you
should get something along the lines of this:
*:80 is a NameVirtualHost
default server vhost1.com (/www/conf/httpd.conf:180)
port 8080 namevhost vhost1.com (/www/conf/httpd.conf:180)
I actually just finished some proof of concept code here to allow us to
"hide" an asp 2.0 application within a mod_perl site.
Basically, all it does is "proxy" (faked, using LWP) the request back to
the other server as as part of content generation phase. take the
response it gets, munges it an
This isn't strictly mod_perl related, but it's defiantly something that
people running a light/heavy setup using SSL must run into, and I can't
seem to find very many good pointers about how to most easily handle
this kind of situation (which I think would be a common sort of setup).
I'm in the p
he idea of submitting this into CPAN or is
the does the lack of reponse indicate that this is horribly useless and
I should immediately delete it and pretend it never happened.
Again, any (some?) feedback would be appreciated.
Adam
> -Original Message-
> From: Adam Prime x443
> Sen
At ApacheCon this year Geoff gave a talk about Output filters (slides:
http://www.modperlcookbook.org/~geoff/slides/ApacheCon/2006/mp2_filters-printable.pdf.gz)
which included a sample handler that ran the manual through HTML::Clean. a
big part of the code in the filter was to handle the possib
Philip uploaded a version to CPAN early yesterday morning which should correct
the issue that Todd was having. AuthDBI is part of the Apache-DBI package.
http://search.cpan.org/~pgollucci/Apache-DBI-1.05/
1.05 11/3/2006
- MP2/AuthDBI: Add missing Apache2::Access
Submitted by: Adam Prime
Looking at Apache::AuthDBI's doc's doesn't show any not about whether it
does or doesn't support mp2, but looking at the code, there is
definately code in there that detects MP2 and does some stuff
differently (importing constansts)
You can try putting 'use Apache2::Access' (which provides
get_bas
$r->server->server_hostname()?
mp2:
http://perl.apache.org/docs/2.0/api/Apache2/ServerRec.html#C_server_host
name_
mp1:
http://perl.apache.org/docs/1.0/api/Apache.html#_s_E_gt_server_hostname
-Original Message-
From: LUKE [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 26, 2006 11:1
Every project site on apache.org except perl.apache.org and
tcl.apache.org are now up.
Is this something someone should be concerned about?
Adam
-Original Message-
From: Perrin Harkins [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 24, 2006 10:53 AM
To: James Davis
Cc: modperl@perl
That should be ModPerl::Util::current_callback for 2.0.
-Original Message-
From: Adam Prime x443
Sent: Wednesday, October 25, 2006 10:54 AM
To: John ORourke; mod_perl List
Subject: RE: getting current phase / PerlOptions in
$r->current_callback() in 1.3. (thanks geoff/mpcookb
$r->current_callback() in 1.3. (thanks geoff/mpcookbook)
Modperl::current_callback() in 2.0. (thanks google)
returns 'PerlAccessHandler' or similiar.
-Original Message-
From: John ORourke [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 25, 2006 9:49 AM
To: mod_perl List
Subject: gett
Why wasn't (hasn't) a version 2.0.3 been pushed out that just fixes
problem with the tests? I only found out about this problem about 3
weeks ago, after going through the same banging of the head that so many
other people seem to have. This problem has existed for months and
seems like it could h
When I asked about early bird rates at the beginning of the month, this
is what I found out. Clearly the dates of the price changes have
shifted, but I expect that the price increments will likely stay the
same.
---
After August 10 the price will go to $650. then it goes to $850 and
finally to $1
onday, March 13, 2006 4:03 PM
To: Adam Prime x443
Cc: modperl@perl.apache.org
Subject: RE: [mp1] intermittant pnotes error
On Mon, 2006-03-13 at 15:57 -0500, Adam Prime x443 wrote:
> The thing the puzzles me the most is that everything runs fine 99.9%
> of the time. I'm kind of at a l
3, 2006 3:08 PM
To: Adam Prime x443
Cc: modperl@perl.apache.org
Subject: Re: [mp1] intermittant pnotes error
On Mon, 2006-03-13 at 11:00 -0500, Adam Prime x443 wrote:
> The code that causes this error (in this example anyway, it has
> happened on practically every package) is this:
>
&g
ies, or if it's something
that happens across processes.
Adam
-Original Message-
From: Perrin Harkins [mailto:[EMAIL PROTECTED]
Sent: Monday, March 13, 2006 3:48 PM
To: Adam Prime x443
Cc: modperl@perl.apache.org
Subject: RE: [mp1] intermittant pnotes error
On Mon, 2006-03-13 at 15:
I have this problem where we get a series of errors like this:
[Sun Mar 12 16:29:23 2006] [error] Can't locate object method "pnotes" via
package "StrategyV2::Careers" at
/usr/lib/perl5/site_perl/5.8.5/i686-linux/Apache/Request.pm line 36.\n
but where the package changes depending on what page
You could alter your SQL to use fully qualified table names, then you don't
need to execute the use statment.
ie.
SELECT whatever
FROM database.table
WHERE id = key
instead of
SELECT whatever
FROM table
WHERE id = key
This works in the version in mysql 4 and greater for sure, and quite poss
For the record Apache::ProxyRewrite is a mod_perl solution, and it would
probably be extremely quick to port it to mp2. At minimum, it might be a good
place to start for your custom handler.
http://search.cpan.org/~cgilmore/Apache-ProxyRewrite-0.17/ProxyRewrite.pm
Adam
-Original Message
Are there reasons you don't want to use mod_proxy, or Apache::ProxyRewrite
(ProxyRewrite may not work on mp2)?
Adam
-Original Message-
From: Eric Lenio [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 20, 2005 10:57 PM
To: Philip M. Gollucci
Cc: Eric Lenio; modperl@perl.apache.org
Subje
If you type http://domain.com into a browser, it issues a request for /. (at
least firefox does).
I doubt you can do a GET request for an empty path, i assume that that is
handled by the browser. If it wasn't, i would think that mod_dir would bounce
the request to '/', and it would still wor
I think it's worth noting (again) that as Perrin said, if you use a instead of a for your registry scripts, then
mod_dir will still handle the directory indexes correctly. If you want a quick
fix, it's probably not going to get any quicker than that.
Adam
-Original Message-
From: Ge
If you use the Content Disposition header you don't have to change the
mime-type associated with that extention.
adam
-Original Message-
From: Paul Harrison [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 13, 2005 12:40 PM
To: 'Tom Schindl'
Cc: modperl@perl.apache.org
Subject: RE: Mim
If you want that extention to be saved sometimes, but handled by the browser
default others use the Content-Disposition header.
ie:
$r->header_out('Content-disposition' => 'attachment; filename=filename.mp3);
adam
-Original Message-
From: Chris Croome [mailto:[EMAIL PROTECTED]
Sent: Tue
MAIL PROTECTED]
Sent: Friday, August 26, 2005 12:56 PM
To: Adam Prime x443
Cc: modperl@perl.apache.org
Subject: RE: survey
On Fri, 2005-08-26 at 12:47 -0400, Adam Prime x443 wrote:
> PHP uses: X-Powered-By: PHP/4.3.11
>
> To effectively bypass the front end server problem.
We decid
PHP uses: X-Powered-By: PHP/4.3.11
To effectively bypass the front end server problem.
Adam
-Original Message-
From: Perrin Harkins [mailto:[EMAIL PROTECTED]
Sent: Friday, August 26, 2005 12:25 PM
To: Frank Wiles
Cc: modperl@perl.apache.org
Subject: Re: survey
On Fri, 2005-08-26 at 0
Ideally, you expire the session on the server (ie, in the DB), rather than by
removing the cookie.
Common hacks people use to remove cookies are setting the expiry in the past,
or to +1s, or simply to put invalid content into the cookie, which your auth
mechanism will subsequently disregard.
Assume i have a handler that sits in a location, and that handler has it's own
admin interface built in. I also want to be able to easily change the
directory that the handler is running in, or have it running in multiple
locations (so i don't want to hardcode the location into the script.
S
I did have to blow away the old install of apreq in Apache:: . I actually
ended up blowing away all the Apache::*.pm's i had installed.
Adam
-Original Message-
From: Dan Brian [mailto:[EMAIL PROTECTED]
Sent: Monday, April 25, 2005 4:59 PM
To: Adam Prime x443
Cc: mod_perl Mailing
On sunday I successfully built the most recent snapshot from SVN.
you can get them here: http://svn.apache.org/snapshots/apreq/
I didn't exactly test it extensively though, but it built and installed fine,
and the few things i was using A:R for didn't blow up.
Adam
-Original Message-
Assuming i was upgrading a machine running RC4 to RC5, what is the easiest way
to remove RC4 so RC5 will install?
make uninstall in the old build directory says it's depreciated (looking at the
makefile), but offers no automated alternative? Will it do the job or do I
really need to go throu
This is sort of a weird situation, so here's a bit of background.
We have a machine that hosts quicktimes offsite. That machine runs a mod_perl
handler that attempts to keep the quicktimes from being deeplinked. One of the
other things it does it handle requests from the user-agent "contype"
Would it make sense to use Worker for the front end, and prefork for the back
end (assuming you want/need prefork for the backend) in this scenario?
Also, now that mod_deflate is part of the package, would it make sense to
recommend running that as well. I ask all this because i set up a box fo
t: Tuesday, February 15, 2005 2:19 PM
To: Ian Joyce; Adam Prime x443
Cc: Mod-Perl ((E-mail))
Subject: Re: securing web form interaction
Hi,
I usually use placeholders in DBI. Is this enough for avoiding SQL
injections?
I have made a simple test and I have seen that it seems to be enough, but...
that too, assuming that your DBD supports them.
-Original Message-
From: Ian Joyce [mailto:[EMAIL PROTECTED]
Sent: Tuesday, February 15, 2005 2:09 PM
To: Adam Prime x443
Cc: Mod-Perl ((E-mail))
Subject: Re: securing web form interaction
On Tue, 15 Feb 2005 14:07:22 -0500, Adam Prime
> Can anyone give me some tips for securing web form interaction?
>
> I'm looking specifically for 2 things:
>
> preemptive defense of potential SQL injection attacks
>
$dbh->quote() everything you can.
f though which makes that reason moot.
adam
-Original Message-
From: Randal L. Schwartz [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 30, 2004 1:03 PM
To: Geoffrey Young
Cc: Adam Prime x443; [EMAIL PROTECTED]
Subject: Re: mod_perl marketing
>>>>> "Geoffrey"
Stupid story time
This probably isn't novel to anyone else, but it was a huge deal to me at the
time.
One morning my manager came and told me that sales had sold a "splash" ad
(meaning a big annoying ad was supposed to come up on a users first request to
the site, no matter where on the site
A lot of that stuff is preaching to the converted. Take the mod_perl related
talks at ApacheCon this year. It seemed like 95% of the people that attended
any of the mod_perl related talks were already running mod_perl, and wanted to
learn more. Perrin's talk, and Geoff's Testing PHP with Per
Here's the job posting thing:
Brunico Communications Inc., a high-energy entrepreneurial company based in Toronto,
seeks an experienced programmer to join our web development team in the following key
role:
Web Developer
Working in conjunction wi
63 matches
Mail list logo