[Catalyst] error using session and authn plug-ins under apache
Yuval Kogman
nothingmuch at woobling.org
Sat Jul 29 14:46:34 CEST 2006
On Fri, Jul 28, 2006 at 16:22:06 -0400, leonard.a.jaffe at jpmchase.com wrote:
> So I dug around in the two modules referenced in the error message and
> found that:
>
> C:P:Session uses Object::Signature, which calles Storable::nfreeze,
> which called Storable::_freeze with a coderef parameter which _freeze is
> supposed to eval, and which turns out to be a c routine.
Yep,
> By dumping my session in Root::end, I see that I have precious little in
> my session:
> __address, __created, __updated, __user, __user_store. so there must be
> something inside
> that DBIC user record (which is contains an INT id, and VARCHAR standardid
> & name) that is
> tripping __freeze under apache.
__user is going to be just an ID.
Please do the following in YourApp.pm:
sub finalize {
my ( $c, @foo ) = @_;
use Data::Dumper;
local $Data::Dumper::Deparse;
$c->log->debug( Dumper($c->session, $c->flash) );
$c->NEXT::finalize(@foo);
}
Using deparse we can see where code ref is and what package it was
defined in (hopefully).
Root::end might not be late enough in the cycle to trap this.
> I'm not using session for anything else yet, and this site will have low
> enough traffic
> that not having the user record in the session won't be a steak in the
> heart, so I'm
> inclined for now to just comment out the session stuff and get on with my
> life.
I'm disturbed that it doesn't work - something changed and I don't
know what it is, and it's affecting other users to...
--
Yuval Kogman <nothingmuch at woobling.org>
http://nothingmuch.woobling.org 0xEBD27418
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://lists.rawmode.org/pipermail/catalyst/attachments/20060729/a7b1a32c/attachment.pgp
More information about the Catalyst
mailing list