[Catalyst] catalyst auth problem w/ storing "CODE items"
Evan Carroll
evan at dealermade.com
Sun Oct 22 22:11:29 GMT 2006
The error I'm getting is:
Caught exception in engine "Can't store CODE items at
blib/lib/Storable.pm (autosplit into blib/lib/auto/Storable/_freeze.al)
line 290, at /usr/local/share/perl/5.8.8/Object/Signature.pm line 19"
induced by this:
sub authen :Private {
my ( $self, $c, ($un, $pw) ) = @_;
if( $c->login($un, $pw) ) { return 1; }
else { return 0; }
}
If I replace that with this:
sub authen :Private {
return 1;
}
The error goes away..
I'm using:
-Debug
ConfigLoader
Redirect
StackTrace
Authentication
Authentication::Store::DBIC
Authentication::Credential::Password
Session
Session::Store::File
Session::State::Cookie
Everything is up to date.
The file /usr/local/share/perl/5.8.8/Object/Signature.pm has this:
15 sub signature {
16 require Storable;
17 require Digest::MD5;
18 local $Storable::canonical = 1;
19 Digest::MD5::md5_hex(
20 Storable::nfreeze(shift)
21 );
22 }
root at nox:/usr/local/share/perl/5.8.7/Catalyst/Plugin# rgrep -i signature
*
Session.pm:use Object::Signature ();
If I remove all of the contents of Session.pm and restart apache, I get
the same error. I'm out of ideas, anyone have advice?
Evan Carroll
evan at dealermade.com
More information about the Catalyst
mailing list