[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#226131: marked as done ($r->dir_config('foo') returns undef instead of 0 when PerlSetVar foo '0')



Your message dated Tue, 27 Jan 2004 13:03:18 -0500
with message-id <E1AlXYU-00005F-00@newraff.debian.org>
and subject line Bug#226131: fixed in apache 1.3.29.0.1-4
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 4 Jan 2004 17:48:11 +0000
>From don@donarmstrong.com Sun Jan 04 11:48:11 2004
Return-path: <don@donarmstrong.com>
Received: from mxsf27.cluster1.charter.net [209.225.28.227] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AcyCX-00006T-00; Sat, 03 Jan 2004 20:41:13 -0600
Received: from donarmstrong.com (66-215-230-252.riv-eres.charterpipeline.net [66.215.230.252])
	by mxsf27.cluster1.charter.net (8.12.10/8.12.8) with SMTP id i042eALT072776
	for <submit@bugs.debian.org>; Sat, 3 Jan 2004 21:40:10 -0500 (EST)
	(envelope-from don@donarmstrong.com)
Received: (nullmailer pid 5249 invoked by uid 1000);
	Sun, 04 Jan 2004 02:40:08 -0000
Date: Sat, 3 Jan 2004 18:40:08 -0800
From: Don Armstrong <don@donarmstrong.com>
To: submit@bugs.debian.org
Subject: $r->dir_config('foo') returns undef instead of 0 when PerlSetVar foo '0'
Message-ID: <[🔎] 20040104024008.GM24175@donarmstrong.com>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="Ll0BBk1HBk/f94B0"
Content-Disposition: inline
X-Face: &M"4U@"QPr*4J='o3uX!C)l^-k6eODr4^>[lX^"g,Ac,>H~+.>_A4bk/GikjcXy?kOy-OitMH)J^MzgI",O5FjF,BxntA-<ERisZX:@dEb%7K+;hya%WR,6a:%h{HBv1Y<Y5=[Zz>z^KXVP9#enwq2X[^'f9tynS2@L0+'sQ"eh+LxX4R}"Xzd6BNr8.@Wu{jyNx|]tJG.*H^IDrsA%3
User-Agent: Mutt/1.5.4i
Delivered-To: submit@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 
	2.60-master.debian.org_2003_11_25-bugs.debian.org_2004_1_3 
	(1.212-2003-09-23-exp) on master.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0 tests=HAS_PACKAGE autolearn=no 
	version=2.60-master.debian.org_2003_11_25-bugs.debian.org_2004_1_3
X-Spam-Level: 


--Ll0BBk1HBk/f94B0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Package: libapache-mod-perl
Version: 1.29.0.1-3
Severity: important
Tags: patch

An apache configuration with:

<Location />
     PerlSetVar foo '0';
</Location>

Causes $r->dir_config('foo') to return undef unstead of zero. However,
$r->dir_config returns a hashref with the appropriate values set.

Apparently, the following patch[1] fixes this issue, but I have not yet
tried it myself. (It looks reasonable though...)

Index: src/modules/perl/Apache.xs
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
RCS file: /home/cvspublic/modperl/src/modules/perl/Apache.xs,v
retrieving revision 1.129
diff -u -r1.129 Apache.xs
--- src/modules/perl/Apache.xs 16 Sep 2003 19:51:06 -0000 1.129
+++ src/modules/perl/Apache.xs 25 Nov 2003 20:39:41 -0000
@@ -2084,7 +2084,7 @@
&perl_module);
TABLE_GET_SET(c->vars, FALSE);
}
- if (!SvTRUE(RETVAL)) {
+ if (!SvOK(RETVAL)) {
s =3D r && r->server ? r->server : perl_get_startup_server();
if (s && s->module_config) {
SvREFCNT_dec(RETVAL); /* in case above did newSV(0) */


Don Armstrong

1: http://www.gossamer-threads.com/archive/mod_perl_C1/modperl_F7/PerlSetVa=
r_with_0_value_P90608/
--=20
"It's not Hollywood. War is real, war is primarily not about defeat or
victory, it is about death. I've seen thousands and thousands of dead
bodies. Do you think I want to have an academic debate on this
subject?"
 -- Robert Fisk

http://www.donarmstrong.com
http://www.anylevel.com
http://rzlab.ucr.edu

--Ll0BBk1HBk/f94B0
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

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

iD8DBQE/930IgcCJIoCND9ARAiVpAKCIh8BVVo79+wC+AxjCt82+Ga7mvgCgh8Dn
Ne3keSaN3/QGNDsZD46kqF0=
=tUnv
-----END PGP SIGNATURE-----

--Ll0BBk1HBk/f94B0--

---------------------------------------
Received: (at 226131-close) by bugs.debian.org; 27 Jan 2004 18:04:56 +0000
>From katie@newraff.debian.org Tue Jan 27 10:04:56 2004
Return-path: <katie@newraff.debian.org>
Received: from newraff.debian.org [208.185.25.31] (mail)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AlXa4-0004Lt-00; Tue, 27 Jan 2004 10:04:56 -0800
Received: from katie by newraff.debian.org with local (Exim 3.35 1 (Debian))
	id 1AlXYU-00005F-00; Tue, 27 Jan 2004 13:03:18 -0500
From: fabbione@fabbione.net (Fabio M. Di Nitto)
To: 226131-close@bugs.debian.org
X-Katie: $Revision: 1.43 $
Subject: Bug#226131: fixed in apache 1.3.29.0.1-4
Message-Id: <E1AlXYU-00005F-00@newraff.debian.org>
Sender: Archive Administrator <katie@newraff.debian.org>
Date: Tue, 27 Jan 2004 13:03:18 -0500
Delivered-To: 226131-close@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_01_25 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-3.0 required=4.0 tests=HAS_BUG_NUMBER autolearn=no 
	version=2.60-bugs.debian.org_2004_01_25
X-Spam-Level: 

Source: apache
Source-Version: 1.3.29.0.1-4

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

apache-common_1.3.29.0.1-4_i386.deb
  to pool/main/a/apache/apache-common_1.3.29.0.1-4_i386.deb
apache-dbg_1.3.29.0.1-4_i386.deb
  to pool/main/a/apache/apache-dbg_1.3.29.0.1-4_i386.deb
apache-dev_1.3.29.0.1-4_i386.deb
  to pool/main/a/apache/apache-dev_1.3.29.0.1-4_i386.deb
apache-doc_1.3.29.0.1-4_all.deb
  to pool/main/a/apache/apache-doc_1.3.29.0.1-4_all.deb
apache-perl_1.3.29.0.1-4_i386.deb
  to pool/main/a/apache/apache-perl_1.3.29.0.1-4_i386.deb
apache-ssl_1.3.29.0.1-4_i386.deb
  to pool/main/a/apache/apache-ssl_1.3.29.0.1-4_i386.deb
apache-utils_1.3.29.0.1-4_i386.deb
  to pool/main/a/apache/apache-utils_1.3.29.0.1-4_i386.deb
apache_1.3.29.0.1-4.diff.gz
  to pool/main/a/apache/apache_1.3.29.0.1-4.diff.gz
apache_1.3.29.0.1-4.dsc
  to pool/main/a/apache/apache_1.3.29.0.1-4.dsc
apache_1.3.29.0.1-4_i386.deb
  to pool/main/a/apache/apache_1.3.29.0.1-4_i386.deb
libapache-mod-perl_1.29.0.1-4_i386.deb
  to pool/main/a/apache/libapache-mod-perl_1.29.0.1-4_i386.deb



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 226131@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Fabio M. Di Nitto <fabbione@fabbione.net> (supplier of updated apache 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 ftpmaster@debian.org)


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

Format: 1.7
Date: Tue, 27 Jan 2004 18:23:49 +0100
Source: apache
Binary: apache-dev apache-common apache-doc apache-utils apache apache-dbg apache-perl libapache-mod-perl apache-ssl
Architecture: source i386 all
Version: 1.3.29.0.1-4
Distribution: unstable
Urgency: low
Maintainer: Debian Apache Maintainers <debian-apache@lists.debian.org>
Changed-By: Fabio M. Di Nitto <fabbione@fabbione.net>
Description: 
 apache     - Versatile, high-performance HTTP server
 apache-common - Support files for all Apache webservers
 apache-dbg - Apache webservers (debugging versions)
 apache-dev - Apache webserver development kit
 apache-doc - Apache webserver docs
 apache-perl - Versatile, high-performance HTTP server with Perl support
 apache-ssl - Versatile, high-performance HTTP server with SSL support
 apache-utils - Utility programs for webservers
 libapache-mod-perl - Integration of perl with the Apache web server
Closes: 224390 225015 225047 225608 225634 226131 227357 227997 228033 228329 228451 228537 228667 228946 229027 229553 229728 229764
Changes: 
 apache (1.3.29.0.1-4) unstable; urgency=low
 .
   * (Fabio M. Di Nitto)
     - Fixed symlink creation in mod-perl postinst (Closes: #225047)
     - Added SSLCacheServerPort check to suggested correction (Closes: #224390)
     - Added mod-perl r->dir_config('foo') patch. Thanks Don. (Closes: #226131)
     - Upgrade to libdb4.2 (Closes: #228451)
     - Updated spanish translation thanks to Javier (Closes: #228329)
     - Applied patch to mod_usertrack (Closes: #227997)
     - Removed mod_uniqe_id from the default setup (Closes: #228033, #228667)
     - Added workaround for a buggy prerm script in woody to ensure smooth
       upgrades (Closes: #227357, #225015)
     - Fixed libapache-mod-perl Depends list (Closes: #228946)
     - Fixed listconffiles to support filenames enclosed in "" and ''
       (Closes: #228537, #225608)
     - Modified modules-config to fully support upgrades from woody and
       in non-interactive mode
     - apache-common shows configuration changes only when upgrading
       (Closes: #229027, #229553)
     - Added symlink from apache-doc to apache/manual (Closes: #229764)
     - Added patch 102_inetdfix to nullify output while processing
       configuration directories (consistent with apache2 and policy)
       (Closes: #225634, #229728)
   * (Thom May)
     - Kill an echo -n that was causing problems on dash
Files: 
 27e4e77c36c18a0a1efd7e9cb833a887 1085 web optional apache_1.3.29.0.1-4.dsc
 0b84a2279b2a62d58dc489db16ee0dca 369854 web optional apache_1.3.29.0.1-4.diff.gz
 5116688bb57e37230b51e0bdf1bf9815 1157584 doc optional apache-doc_1.3.29.0.1-4_all.deb
 1fb0cc59e70d54bff19bf99236b28d55 365576 web optional apache_1.3.29.0.1-4_i386.deb
 0310544ca5ac5ea32bf03cb93f1f9c29 476470 web optional apache-ssl_1.3.29.0.1-4_i386.deb
 0b9da6ad149ced1140e3fe3045db3110 484102 web extra apache-perl_1.3.29.0.1-4_i386.deb
 0cef9adbe4970e23965daf08bb9c129d 315820 devel extra apache-dev_1.3.29.0.1-4_i386.deb
 071d297c6223d234d80693aa18959f25 9056570 devel extra apache-dbg_1.3.29.0.1-4_i386.deb
 5052c93eadebe355c0fc41c8fb382fa0 813536 web optional apache-common_1.3.29.0.1-4_i386.deb
 59827a1a5ca0acf5ce867415ea77001a 252724 web optional apache-utils_1.3.29.0.1-4_i386.deb
 000ffc730e4bedbc82d937cf92525a1e 479496 web optional libapache-mod-perl_1.29.0.1-4_i386.deb

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

iD8DBQFAFqOGhCzbekR3nhgRApYsAJ0dAWQgcQ9uPoqfpXrCwIXjoPe9hwCgjyf5
ogQFxmYxjF1bsoB1SU4TwnM=
=Ab+g
-----END PGP SIGNATURE-----



Reply to: