|
From: Allen D. <all...@uc...> - 2002-06-18 05:57:30
|
I get:
allenday@kermit:/home/allenday> ./v.pl c4d27f160f39f8564580debf2619324f
HASH(0x8109368)
Parameter 'website_dir' must refer to an OpenInteract website directory!
allenday@kermit:/home/allenday>
Are we on to something?
BTW, I installed OpenInteract on a second machine. Went without a hitch.
Looks nice! I'll try to play with it this weekend.
-Allen
On Tue, 18 Jun 2002, Chris Winters wrote:
> On Sun, 2002-06-16 at 01:17, Allen Day wrote:
> > I think the problem is here:
> >
> > OpenInteract::Session::DBI::_create_session (28) >> Trying to fetch session [c4d27f160f39f8564580debf2619324f]
> > OpenInteract::Auth::user (63) >> No uid found in session. Finding login info.
> > OpenInteract::Auth::user (72) >> Creating the not-logged-in user.
> > OpenInteract::Auth::group (256) >> No logged-in user found, not retrieving groups.
> > <snip>
> > >> Error: Cannot accomplish task due to security. at /usr/lib/perl5/site_perl/5.6.1/OpenInteract/Error/System.pm line 295
> >
> > Shouldn't a uid be found in that session after a successful login? Would
> > it be in sessions.a_session?
>
> Yes, it should. But the session is encoded in a binary format, so unless
> you have superhuman abilities that won't help much :-)
>
> Try running the following script to see what you get:
>
> ---------------
> #!/usr/bin/perl
>
> use strict;
> use Apache::Session::MySQL;
> use OpenInteract::Startup;
> use Data::Dumper qw( Dumper );
>
> {
> my $session_id = shift @ARGV;
> unless ( $session_id ) {
> die "Usage: $0 session-id\n";
> }
> my $R = OpenInteract::Startup->setup_static_environment_options(
> {}, { temp_lib => 'lazy' } );
> my $session_class = $R->CONFIG->{session_info}{class};
> my $db = $R->db();
> my ( %session );
> tie %session, $session_class, $session_id, { Handle => $db,
> LockHandle => $db };
> print Dumper( \%session );
> }
> ---------------
>
> Chris
>
>
|