Skip Menu |
 

This queue is for tickets about the CGI-Session CPAN distribution.

Report information
The Basics
Id: 18624
Status: resolved
Priority: 0/
Queue: CGI-Session

People
Owner: MARKSTOS [...] cpan.org
Requestors: n/a
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 4.10
Fixed in: (no value)



Subject: cannot load db_file objects
Download (untitled) / with headers
text/plain 518b
I initiate a CGI:Session object like this: CGI::Session->new("driver:db_file", $r, {FileName=>'sessions/sess.db'}); Perl: This is perl, v5.8.6 built for i386-freebsd-64int If using version 4.10 or later, it can create new sess.db without glitch. However, to use the same file it created to load data fails with the following error message: new(): failed: load(): couldn't retrieve data: _tie_db_file(): couldn't tie 'sess.db' replicates evey time for 4.10, 4.11 and 4.12 .. temporary fix is to downgrade to 4.09
From: Vinay
Download (untitled) / with headers
text/plain 867b
ok, I did some more research. the NO_FOLLOW fix that came in 4.10 is causing the problem commenting out the following line in db_file.pm also fixes the problem: $o_mode |= $NO_FOLLOW; This must be an architecture specific issue. There are no symlinks occuring here. On Mon Apr 10 00:22:59 2006, guest wrote: Show quoted text
> I initiate a CGI:Session object like this: > > CGI::Session->new("driver:db_file", $r, {FileName=>'sessions/sess.db'}); > > Perl: This is perl, v5.8.6 built for i386-freebsd-64int > > If using version 4.10 or later, it can create new sess.db without > glitch. However, to use the same file it created to load data fails > with the following error message: > > new(): failed: load(): couldn't retrieve data: _tie_db_file(): couldn't > tie 'sess.db' > > replicates evey time for 4.10, 4.11 and 4.12 .. temporary fix is to > downgrade to 4.09
From: Vinay
one final update $NO_FOLLOW = eval { O_NOFOLLOW } || 0; above, $NO_FOLLOW = 256


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.