[Catalyst] catalyst auth problem w/ storing "CODE items"

Len Jaffe lenjaffe at jaffesystems.com
Sun Oct 22 23:59:10 BST 2006


Update Tie::RefHash and see what happens.

On 10/22/06, Evan Carroll <evan at dealermade.com> wrote:
>
> 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) ) =3D @_;
>   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 =3D 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
>
>
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
>



-- =

lenjaffe at jaffesystems.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jules.scsys.co.uk/pipermail/catalyst/attachments/20061022/c5781=
288/attachment.html


More information about the Catalyst mailing list