k fine. I wrote the same thing today (albeit without
method calls)...
# Trans handler
sub lookup_handler {
my $r=shift;
my $dbh=GTS::Util::connectdb(); # essentially a wrapper for DBI-
>connect
...
$r->pnotes(dbh=>$dbh);
return Apache2::Const::DECLINED;
}
# Response handler
sub
$dbh = $r->pnotes('DBH');
and the problem goes away when the only use of the
$dbh has been DBI->connect how can I identify where
else the fault is in my code if it worked previously
under MP1?
Sorry to bother you with this,
John.
On Apr 3, 2006, at 12:25 PM, Geoffrey Young wro
Thank you. Tried it, unfortunately no difference.
I'll try Geoffrey Young's test.
On Apr 3, 2006, at 12:08 PM, Torsten Foertsch wrote:
On Monday 03 April 2006 20:20, John Russell wrote:
sub handler($$) {
http://perl.apache.org/docs/2.0/user/porting/
porting.html#Method_Handle
.apache.org/docs/2.0/api/Apache2/RequestUtil.html#C_pnotes_
Tom
John Russell wrote:
Tom,
under MP2
$r->pnotes(DBH => $dbh);
gives
failed for ..., reason: DBI::db=HASH(0x97c720c)
and also the same error with Apache2::SafePnotes.
Hence the reason to try de-referencing the hash.
Thank
Tom,
under MP2
$r->pnotes(DBH => $dbh);
gives
failed for ..., reason: DBI::db=HASH(0x97c720c)
and also the same error with Apache2::SafePnotes.
Hence the reason to try de-referencing the hash.
Thank you, John.
On Apr 3, 2006, at 11:32 AM, Tom Schindl wrote:
John Russell wrote:
In
In MP1 it was possible to do..
Authorization Phase
sub handler {
my $dbh;
$dbh = DBI->connect(..)
|| return "Error connecting.\n $DBI::errstr\n";
$r->pnotes(DBH => $dbh);
Response Phase
sub handler($$) {
my $dbh = $r->pnotes('DBH');
However this doesn't work in MP2 because
Hi,
I'm trying to migrate from MP1 to MP2 and having trouble with
get_basic_auth_pw and note_basic_auth_failure
which can not be found ..
...
AuthName Database
AuthType Basic
PerlAuthenHandler Xdb::AuthOra2->handler
require valid-user
PerlResponseHandler Xdb::Apache