Your message dated Wed, 16 Jul 2008 18:17:09 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#490198: fixed in libcgi-session-perl 4.35-1
has caused the Debian Bug report #490198,
regarding _load_pluggables can fail with hidden error
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)


-- 
490198: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=490198
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: libcgi-session-perl
Version: 4.32-1
Severity: normal

This bug should be forwarded upstream. Sorry, too lazy to log into PAUSE
myself.

CGI::Session->new will occasionally fail for people like this:

<tschwinge> $ perl -e 'use CGI::Session; use 
CGI;$s=CGI::Session->new("driver:DB_File;serializer:default;id:static", 
CGI->new, { Filename => "foo"})'
<tschwinge> Can't locate object method "generate_id" via package 
"CGI::Session::ID::static" (perhaps you forgot to load 
"CGI::Session::ID::static"?) at /usr/share/perl5/CGI/Session.pm line 74.

Or this:

<tschwinge> $ perl -e 'use CGI::Session; use 
CGI;$s=CGI::Session->new("driver:DB_File;serializer:default", CGI->new, { 
Filename => "foo"})'
<tschwinge> Can't locate object method "generate_id" via package 
"CGI::Session::ID::" (perhaps you forgot to load "CGI::Session::ID::static"?) 
at /usr/share/perl5/CGI/Session.pm line 74.

The actual error is not what's shown, but this:

[EMAIL PROTECTED]:~$ perl -e 'use CGI::Session::Driver::db_file'

DB_File needs compatible versions of libdb & db.h
        you have db.h version 4.6.19 and libdb version 4.6.21
Compilation failed in require at /usr/share/perl5/CGI/Session/Driver/db_file.pm 
line 8.
BEGIN failed--compilation aborted at 
/usr/share/perl5/CGI/Session/Driver/db_file.pm line 8.
Compilation failed in require at -e line 1.

This is on a hurd system with some kind of messed up libraries, but that's not
really germane to this bug report.

The bug here is that the error message is useless. In _load_pluggables, 
if a module fails to load, it calls:

                return $self->set_error("couldn't load $mod_name: " . $msg);

This breaks out of the loop, before other pluggables can be loaded.

Then in new, it does this:

        my $id = $self->_id_generator()->generate_id(
                                                     $self->{_DRIVER_ARGS},
                                                     $self->{_CLAIMED_ID}
                                                     );


$self->_id_generator() in turn returns the module name, which has not been
loaded. Splat. 

The fix would probably involve testing the return value of load_pluggables
and propigating the error message out so that the caller of new can check it
with errstr().

Until this is fixed, callers of CGI::Session that want to use it robustly
need to eval CGI::Session->new ..

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.25-2-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libcgi-session-perl depends on:
ii  perl                          5.10.0-11  Larry Wall's Practical Extraction 

Versions of packages libcgi-session-perl recommends:
ii  libdbi-perl                   1.605-1    Perl5 database interface by Tim Bu

-- no debconf information

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature


--- End Message ---
--- Begin Message ---
Source: libcgi-session-perl
Source-Version: 4.35-1

We believe that the bug you reported is fixed in the latest version of
libcgi-session-perl, which is due to be installed in the Debian FTP archive:

libcgi-session-perl_4.35-1.diff.gz
  to pool/main/libc/libcgi-session-perl/libcgi-session-perl_4.35-1.diff.gz
libcgi-session-perl_4.35-1.dsc
  to pool/main/libc/libcgi-session-perl/libcgi-session-perl_4.35-1.dsc
libcgi-session-perl_4.35-1_all.deb
  to pool/main/libc/libcgi-session-perl/libcgi-session-perl_4.35-1_all.deb
libcgi-session-perl_4.35.orig.tar.gz
  to pool/main/libc/libcgi-session-perl/libcgi-session-perl_4.35.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
gregor herrmann <[EMAIL PROTECTED]> (supplier of updated libcgi-session-perl 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.8
Date: Wed, 16 Jul 2008 20:03:09 +0200
Source: libcgi-session-perl
Binary: libcgi-session-perl
Architecture: source all
Version: 4.35-1
Distribution: unstable
Urgency: low
Maintainer: Debian Perl Group <[EMAIL PROTECTED]>
Changed-By: gregor herrmann <[EMAIL PROTECTED]>
Description: 
 libcgi-session-perl - Persistent session data in CGI applications
Closes: 490198
Changes: 
 libcgi-session-perl (4.35-1) unstable; urgency=low
 .
   [ gregor herrmann ]
   * New upstream release, includes a fix for the "hidden error with
     _load_pluggables" problem (closes: #490198).
   * Add /me to Uploaders.
 .
   [ Damyan Ivanov ]
   * add libdbi-perl and libdbd-sqlite3-perl to B-D-I in order to enable more
     tests
Checksums-Sha1: 
 d55bf15b332f99f38a267c01c0424fb8fd57a065 1520 libcgi-session-perl_4.35-1.dsc
 76d43e1961ee0a31344a239a153ebc9661d2b396 69777 
libcgi-session-perl_4.35.orig.tar.gz
 2b7958f17da077214dd8efbf35dd4e29873b7e65 3808 
libcgi-session-perl_4.35-1.diff.gz
 c047084b3c5034da6c52ba1fc6f9f418f7da92bc 120886 
libcgi-session-perl_4.35-1_all.deb
Checksums-Sha256: 
 5b7bc0671ef999ba83bf1e88afc74cb1eb82e5cdd8ebb1576606d606add504bf 1520 
libcgi-session-perl_4.35-1.dsc
 901efd51d0d02184a63768a097c0dc2cb654471cadc4dfbe5b5792c52d9ee5dc 69777 
libcgi-session-perl_4.35.orig.tar.gz
 bfe41dc301e64d442841dc7d305e940db31d0c0a67cfd7ee84bb1f4dab97f5c2 3808 
libcgi-session-perl_4.35-1.diff.gz
 c7aac360463a07bc70bf4c9176774d5ea6c63acf167de14755d86cacbfb06926 120886 
libcgi-session-perl_4.35-1_all.deb
Files: 
 55e8440c32ba6b9e447c0eac58e455ff 1520 perl optional 
libcgi-session-perl_4.35-1.dsc
 d4c8e7e89b7cfd7a18d473ab04663e4e 69777 perl optional 
libcgi-session-perl_4.35.orig.tar.gz
 fc629e1d58d0ab037a5c3f6a88e4a113 3808 perl optional 
libcgi-session-perl_4.35-1.diff.gz
 d6f9967dd08d7f996e53cf8281a5f2be 120886 perl optional 
libcgi-session-perl_4.35-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkh+OEkACgkQOzKYnQDzz+R9MwCePjD7NYCZoVMZSEzqPn33xIpw
Gc4Ani3+UMFd0ETrZXt9SB647Gpqzjp3
=KSKw
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to