Skip Menu |
 

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

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

People
Owner: MARKSTOS [...] cpan.org
Requestors: steve.kieu [...] ird.govt.nz
Cc:
AdminCc:

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



Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 08BEC4D8047 for <bug-cgi-session [...] rt.cpan.org>; Tue, 13 Nov 2007 17:19:26 -0500 (EST)
Received: (qmail 28745 invoked by alias); 13 Nov 2007 22:19:26 -0000
Received: from gate3.ird.govt.nz (HELO igw.ird.govt.nz) (138.235.113.2) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 13 Nov 2007 14:19:19 -0800
Delivered-To: cpan-bug+cgi-session [...] diesel.bestpractical.com
Subject: Bug Report: Can't locate object method "generate_id" when using mysql driver
MIME-Version: 1.0
User-Agent: Thunderbird 2.0.0.6 (X11/20070728)
X-Spam-Status: No, hits=-6.6 required=8.0 tests=BAYES_00,RCVD_IN_DNSWL_MED,SPF_PASS
Return-Path: <steve.kieu [...] ird.govt.nz>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: bug-cgi-session [...] rt.cpan.org
Date: Wed, 14 Nov 2007 11:14:40 +1300
Message-Id: <473A21D0.4030703 [...] ird.govt.nz>
content-type: text/plain; charset="utf-8"; format="flowed"
To: bug-CGI-Session [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Steve Kieu <steve.kieu [...] ird.govt.nz>
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 756
Download (untitled) / with headers
text/plain 756b
Hello, I installed monarch (a nagios configuration front end) and I can not login. Debuging shows that error message: Can't locate object method "generate_id" via package "CGI::Session::ID::" (perhaps you forgot to load "CGI::Session::ID::"?) at /usr/lib/perl5/site_perl/5.8.8/CGI/Session.pm line 74., referer: http://nagtst01/monarch/cgi-bin/monarch.cgi digging in the monarch code it uses:in MonarchStorProc.pm use CGI::Session qw/-ip-match/; the error happend when execute the below line: my $session = new CGI::Session("driver:MySQL", undef, {Handle=>$dbh}); $dbh is db handle and I have tested it; it is ok. The version having problem is: 4.20. Downgrading CGI::Session to 4.10 will solve the problem. I hope this helps. Regards,
MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,SPF_PASS
In-Reply-To: <rt-3.6.HEAD-2618-1194992375-816.30707-4-0 [...] rt.cpan.org>
References: <RT-Ticket-30707 [...] rt.cpan.org> <473A21D0.4030703 [...] ird.govt.nz> <rt-3.6.HEAD-2618-1194992375-816.30707-4-0 [...] rt.cpan.org>
Content-Type: text/plain; charset=utf-8; format=flowed
X-RT-Original-Encoding: utf-8
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 871D04D80A7 for <bug-CGI-Session [...] rt.cpan.org>; Tue, 13 Nov 2007 23:14:35 -0500 (EST)
Received: (qmail 4506 invoked by alias); 14 Nov 2007 04:14:34 -0000
Received: from tanagra.summersault.com (HELO tanagra.summersault.com) (12.161.105.149) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 13 Nov 2007 20:14:23 -0800
Received: (qmail 97647 invoked from network); 14 Nov 2007 04:14:18 -0000
Received: from vpn-client-62.summersault.com (HELO ?192.168.97.62?) (mark [...] 192.168.97.62) by tanagra.summersault.com with ESMTPA; 14 Nov 2007 04:14:18 -0000
Delivered-To: cpan-bug+cgi-session [...] diesel.bestpractical.com
User-Agent: Thunderbird 2.0.0.6 (X11/20071022)
Subject: Re: [rt.cpan.org #30707] Bug Report: Can't locate object method "generate_id" when using mysql driver
Return-Path: <mark [...] summersault.com>
X-Original-To: bug-CGI-Session [...] rt.cpan.org
X-Spam-Check-BY: la.mx.develooper.com
Date: Tue, 13 Nov 2007 23:14:13 -0500
Message-Id: <473A7615.8070603 [...] summersault.com>
To: bug-CGI-Session [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Mark Stosberg <mark [...] summersault.com>
X-RT-Original-Encoding: utf-8
RT-Message-ID: <rt-3.6.HEAD-2584-1195013692-1827.30707-0-0 [...] rt.cpan.org>
Content-Length: 1359
Download (untitled) / with headers
text/plain 1.3k
Show quoted text
> I installed monarch (a nagios configuration front end) and I can not > login. Debuging shows that error message: > > Can't locate object method "generate_id" via package > "CGI::Session::ID::" (perhaps you forgot to load "CGI::Session::ID::"?) > at /usr/lib/perl5/site_perl/5.8.8/CGI/Session.pm line 74., referer: > http://nagtst01/monarch/cgi-bin/monarch.cgi > > > digging in the monarch code it uses:in MonarchStorProc.pm > > use CGI::Session qw/-ip-match/; > > the error happend when execute the below line: > my $session = new CGI::Session("driver:MySQL", undef, {Handle=>$dbh}); > > > $dbh is db handle and I have tested it; it is ok. > > The version having problem is: 4.20. Downgrading CGI::Session to 4.10 > will solve the problem.
I'm sorry this didn't work for you, but I think you were using an undocumented feature in the the past, rather than experiencing a bug in the present. I think the driver name should be lower case: "mysql". I can't see that the docs say otherwise: http://search.cpan.org/~markstos/CGI-Session-4.20/lib/CGI/Session.pm#new() If you can find documentation that we supported "MySQL", I'll consider changing the code. However, if it seems the documentation wasn't being followed, I'm less inclined to consider it a bug, since it seems fair for undocumented behavior to change over time. Mark
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 10D334D8041 for <bug-cgi-session [...] rt.cpan.org>; Wed, 14 Nov 2007 16:48:18 -0500 (EST)
Received: (qmail 30280 invoked by alias); 14 Nov 2007 21:48:17 -0000
Received: from gate3.ird.govt.nz (HELO igw.ird.govt.nz) (138.235.113.2) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Wed, 14 Nov 2007 13:48:07 -0800
Delivered-To: cpan-bug+cgi-session [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #30707] Bug Report: Can't locate object method "generate_id" when using mysql dr
MIME-Version: 1.0
Return-Path: <steve.kieu [...] ird.govt.nz>
X-Spam-Status: No, hits=-6.6 required=8.0 tests=BAYES_00,HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS
X-Original-To: bug-cgi-session [...] rt.cpan.org
X-Spam-Check-BY: la.mx.develooper.com
X-Mailer: Novell GroupWise Internet Agent 6.5.7
Date: Thu, 15 Nov 2007 10:25:50 +1300
Message-Id: <s73c1eb5.010 [...] adcgw1.ird.govt.nz>
Content-Type: multipart/alternative; boundary="=__PartBD9BCCCE.0__="
To: <bug-CGI-Session [...] rt.cpan.org>
From: "Steve Kieu" <Steve.Kieu [...] ird.govt.nz>
RT-Message-ID: <rt-3.6.HEAD-2606-1195076922-1762.30707-0-0 [...] rt.cpan.org>
Content-Length: 0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: US-ASCII
X-RT-Original-Encoding: utf-8
Content-Length: 831
Download (untitled) / with headers
text/plain 831b
Hello Mark, The monarch code is in origin. However I have tried to change to mysql in lower case which does not help. And I tried to run as a test case in perl and got the same error. If you try this code: perl -e 'use CGI::Session; $s = CGI::Session->new("driver:mysql", $sid, undef);' With version 4.10 no error. With version 4.20. got: Can't locate object method "generate_id" via ..... So I am sure this is still a bug. Regards, I'm sorry this didn't work for you, but I think you were using an undocumented feature in the the past, rather than experiencing a bug in the present. I think the driver name should be lower case: "mysql". I can't see that the docs say otherwise: http://search.cpan.org/~markstos/CGI-Session-4.20/lib/CGI/Session.pm#new() Steve Kieu <steve.kieu@ird.govt.nz>
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: ISO-8859-1
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 1588
MIME-Version: 1.0
X-Spam-Status: No, hits=-2.6 required=8.0 tests=BAYES_00,SPF_PASS
In-Reply-To: <rt-3.6.HEAD-2606-1195076922-1762.30707-5-0 [...] rt.cpan.org>
Content-Disposition: inline
References: <RT-Ticket-30707 [...] rt.cpan.org> <s73c1eb5.010 [...] adcgw1.ird.govt.nz> <rt-3.6.HEAD-2606-1195076922-1762.30707-5-0 [...] rt.cpan.org>
Content-Type: text/plain; charset="utf-8"
Organization: Summersault, LLC
X-RT-Original-Encoding: utf-8
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id D747A4D803F for <bug-CGI-Session [...] rt.cpan.org>; Thu, 15 Nov 2007 10:26:03 -0500 (EST)
Received: (qmail 1568 invoked by alias); 15 Nov 2007 15:26:02 -0000
Received: from tanagra.summersault.com (HELO tanagra.summersault.com) (12.161.105.149) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Thu, 15 Nov 2007 07:25:52 -0800
Received: (qmail 2720 invoked from network); 15 Nov 2007 15:25:35 -0000
Received: from simba.summersault.com (192.168.97.182) by tanagra.summersault.com with SMTP; 15 Nov 2007 15:25:35 -0000
Delivered-To: cpan-bug+cgi-session [...] diesel.bestpractical.com
User-Agent: KMail/1.9.4
Subject: Re: [rt.cpan.org #30707] Bug Report: Can't locate object method "generate_id" when using mysql dr
Return-Path: <mark [...] summersault.com>
X-Spam-Check-BY: la.mx.develooper.com
X-Original-To: bug-CGI-Session [...] rt.cpan.org
Date: Thu, 15 Nov 2007 10:27:26 -0500
Message-Id: <200711151027.27162.mark [...] summersault.com>
To: bug-CGI-Session [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Mark Stosberg <mark [...] summersault.com>
X-RT-Original-Encoding: utf-8
RT-Message-ID: <rt-3.6.HEAD-2591-1195140467-937.30707-0-0 [...] rt.cpan.org>
Content-Length: 1275
Download (untitled) / with headers
text/plain 1.2k
On Wednesday 14 November 2007 16:48, Steve Kieu via RT wrote: Show quoted text
> Queue: CGI-Session > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=30707 > > > > Hello Mark, > > The monarch code is in origin. However I have tried to change to > mysql in lower case which does not help. And I tried to run as > a test case in perl and got the same error. > > If you try this code: > > perl -e 'use CGI::Session; $s = > CGI::Session->new("driver:mysql", $sid, undef);' > > With version 4.10 no error. > With version 4.20. got: > > Can't locate object method "generate_id" via .....
Steve, After unpacking a fresh 4.20 distribution, does "make test" pass? You may need to set an environment variable to trigger the MySQL tests. We do have tests for the MySQL driver, and I'm sure we have tests for something this fundamental. If all the tests pass, please modify a test or add a new test to the suite that demonstrates your bug. I suspect there is something different about your environment with 4.20, like a missing module. If there is a bug, I'd like to get it fixed, but as you are reporting it, it would impact many, many people and is difficult to see how it could not have caught by the test suite, and been reported already by another user. Mark
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 3D7244D80C1 for <bug-cgi-session [...] rt.cpan.org>; Sun, 18 Nov 2007 19:33:54 -0500 (EST)
Received: (qmail 8160 invoked by alias); 19 Nov 2007 00:33:53 -0000
Received: from gate3.ird.govt.nz (HELO igw.ird.govt.nz) (138.235.113.2) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Sun, 18 Nov 2007 16:33:48 -0800
Delivered-To: cpan-bug+cgi-session [...] diesel.bestpractical.com
Subject: Re: [rt.cpan.org #30707] Bug Report: Can't locate object method "generate_id" when using mysql dr
MIME-Version: 1.0
Return-Path: <steve.kieu [...] ird.govt.nz>
X-Spam-Status: No, hits=-6.6 required=8.0 tests=BAYES_00,HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS
X-Original-To: bug-cgi-session [...] rt.cpan.org
X-Spam-Check-BY: la.mx.develooper.com
X-Mailer: Novell GroupWise Internet Agent 6.5.7
Date: Mon, 19 Nov 2007 13:33:08 +1300
Message-Id: <s741909c.021 [...] adcgw1.ird.govt.nz>
Content-Type: multipart/alternative; boundary="=__Part624468D4.0__="
To: <bug-CGI-Session [...] rt.cpan.org>
From: "Steve Kieu" <Steve.Kieu [...] ird.govt.nz>
RT-Message-ID: <rt-3.6.HEAD-3936-1195432442-1407.30707-0-0 [...] rt.cpan.org>
Content-Length: 0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 7bit
X-RT-Original-Encoding: US-ASCII
X-RT-Original-Encoding: utf-8
Content-Length: 1688
Download (untitled) / with headers
text/plain 1.6k
Hello, I make test and set the test environment ; the test passed for g4_mysql ; What a strange thing is, after I make install; the error gone away. I think it overwrites the old version of Session.pm. Regards, Steve Kieu <steve.kieu@ird.govt.nz> Show quoted text
>>> "mark@summersault.com via RT" <bug-CGI-Session@rt.cpan.org>
16/11/2007 4:27 a.m. >>> <URL: http://rt.cpan.org/Ticket/Display.html?id=30707 > On Wednesday 14 November 2007 16:48, Steve Kieu via RT wrote: Show quoted text
> Queue: CGI-Session > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=30707 > > > > Hello Mark, > > The monarch code is in origin. However I have tried to change
to Show quoted text
> mysql in lower case which does not help. And I tried to run
as Show quoted text
> a test case in perl and got the same error. > > If you try this code: > > perl -e 'use CGI::Session; $s = > CGI::Session->new("driver:mysql", $sid, undef);' > > With version 4.10 no error. > With version 4.20. got: > > Can't locate object method "generate_id" via .....
Steve, After unpacking a fresh 4.20 distribution, does "make test" pass? You may need to set an environment variable to trigger the MySQL tests. We do have tests for the MySQL driver, and I'm sure we have tests for something this fundamental. If all the tests pass, please modify a test or add a new test to the suite that demonstrates your bug. I suspect there is something different about your environment with 4.20, like a missing module. If there is a bug, I'd like to get it fixed, but as you are reporting it, it would impact many, many people and is difficult to see how it could not have caught by the test suite, and been reported already by another user. Mark
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: ISO-8859-1
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 2588


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.