Skip Menu |
 

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

Report information
The Basics
Id: 107003
Status: new
Priority: 0/
Queue: CGI-Simple

People
Owner: Nobody in particular
Requestors: mschout [...] gkg.net
Cc:
AdminCc:

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



MIME-Version: 1.0
X-Spam-Status: No, score=-3.796 tagged_above=-99.9 required=10 tests=[AWL=0.093, BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RP_MATCHES_RCVD=-1.289] autolearn=ham
X-Spam-Flag: NO
content-type: text/plain; charset="utf-8"
Message-ID: <55F1862B.70907 [...] gkg.net>
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
X-Virus-Scanned: by amavisd-new at gkg.net
X-Spam-Score: -3.796
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id 13DAF240331 for <cpan-bug+cgi-simple [...] hipster.bestpractical.com>; Thu, 10 Sep 2015 09:31:38 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tyn67xQofZYn for <cpan-bug+cgi-simple [...] hipster.bestpractical.com>; Thu, 10 Sep 2015 09:31:36 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id 94D192401F7 for <bug-cgi-simple [...] rt.cpan.org>; Thu, 10 Sep 2015 09:31:36 -0400 (EDT)
Received: (qmail 24808 invoked by alias); 10 Sep 2015 13:31:35 -0000
Received: from smtp-a.gkg.net (HELO smtp-a.gkg.net) (208.180.25.111) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Thu, 10 Sep 2015 06:31:29 -0700
Received: from amavis.gkg.net (amavisd4.gkg.net [208.180.25.202]) by smtp-a.gkg.net (Postfix) with ESMTP id 9A5CAA70B4 for <bug-cgi-simple [...] rt.cpan.org>; Thu, 10 Sep 2015 08:31:25 -0500 (CDT)
Received: from lothlorien.snowcrash.lan (proxy.gkg.net [208.180.24.220]) by smtp-a.gkg.net (Postfix) with ESMTPSA id F168CA70B1 for <bug-cgi-simple [...] rt.cpan.org>; Thu, 10 Sep 2015 08:31:24 -0500 (CDT)
Delivered-To: cpan-bug+cgi-simple [...] hipster.bestpractical.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
Subject: Incorrect detection of mod_perl2 version.
Return-Path: <mschout [...] gkg.net>
X-RT-Mail-Extension: cgi-simple
X-Original-To: cpan-bug+cgi-simple [...] hipster.bestpractical.com
X-Spam-Check-BY: la.mx.develooper.com
X-Old-Spam-Status: No, score=-1.01 tagged_above=-999 required=5 tests=[ALL_TRUSTED=-1, T_RP_MATCHES_RCVD=-0.01] autolearn=disabled
Date: Thu, 10 Sep 2015 08:31:23 -0500
X-Old-Spam-Flag: NO
X-Spam-Level:
To: bug-cgi-simple [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: Michael Schout <mschout [...] gkg.net>
X-RT-Original-Encoding: utf-8
X-RT-Interface: Email
Content-Length: 897
Download (untitled) / with headers
text/plain 897b
Hi. in _initialize_mod_perl(), CGI::Simple is checking if $mod_perl::VERSION is >= 2.00. However, the *ACTUAL* version that the great rename into the Apache2 namespace happened was in the 2.0.0-RC5 release of mod_perl, which has $mod_perl::VERSION set to 1.999022. Because of this, CGI::Simple fails to work if run under mod_perl2 2.0.0-RC5. Yes I know this is an ancient release, but there was a version of RHEL that shipped with this (RHEL5 IIRC). The fix is simple: diff --git a/lib/CGI/Simple.pm b/lib/CGI/Simple.pm index 52d5198..ef71760 100644 --- a/lib/CGI/Simple.pm +++ b/lib/CGI/Simple.pm @@ -229,7 +229,7 @@ sub _initialize_mod_perl { if ( defined $mod_perl::VERSION ) { - if ( $mod_perl::VERSION >= 2.00 ) { + if ( $mod_perl::VERSION >= 1.999022 ) { $self->{'.mod_perl'} = 2; require Apache2::RequestRec; Thanks in advance. Regards, Michael Schout


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.