Return-Path: Delivered-To: apmail-perl-modperl-cvs-archive@www.apache.org Received: (qmail 7062 invoked from network); 30 Oct 2010 22:00:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 30 Oct 2010 22:00:48 -0000 Received: (qmail 51205 invoked by uid 500); 30 Oct 2010 22:00:48 -0000 Delivered-To: apmail-perl-modperl-cvs-archive@perl.apache.org Received: (qmail 51134 invoked by uid 500); 30 Oct 2010 22:00:47 -0000 Mailing-List: contact modperl-cvs-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@perl.apache.org List-Id: Delivered-To: mailing list modperl-cvs@perl.apache.org Received: (qmail 51127 invoked by uid 99); 30 Oct 2010 22:00:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Oct 2010 22:00:47 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Oct 2010 22:00:44 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 10CBA23888FE; Sat, 30 Oct 2010 21:59:47 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1029211 - in /perl/modperl/trunk: Changes lib/Apache2/Status.pm t/conf/extra.conf.in t/hooks/authen_basic.t t/hooks/authz.t Date: Sat, 30 Oct 2010 21:59:46 -0000 To: modperl-cvs@perl.apache.org From: phred@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20101030215947.10CBA23888FE@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: phred Date: Sat Oct 30 21:59:46 2010 New Revision: 1029211 URL: http://svn.apache.org/viewvc?rev=1029211&view=rev Log: Apply fixes for various issues with newer LWP and B::Concise http://www.gossamer-threads.com/lists/modperl/modperl/102217 Submitted by: Doug Schrag Applied by: Fred Moyer Tested by: Fred Moyer Modified: perl/modperl/trunk/Changes perl/modperl/trunk/lib/Apache2/Status.pm perl/modperl/trunk/t/conf/extra.conf.in perl/modperl/trunk/t/hooks/authen_basic.t perl/modperl/trunk/t/hooks/authz.t Modified: perl/modperl/trunk/Changes URL: http://svn.apache.org/viewvc/perl/modperl/trunk/Changes?rev=1029211&r1=1029210&r2=1029211&view=diff ============================================================================== --- perl/modperl/trunk/Changes (original) +++ perl/modperl/trunk/Changes Sat Oct 30 21:59:46 2010 @@ -12,6 +12,12 @@ Also refer to the Apache::Test changes l =item 2.0.5-dev +Authentication tests fail with LWP 5.815 and later +[Doug Schrag] + +Concise test won't perform unless StatusTerse is set to ON +[Doug Schrag] + Look for a usable apxs in $ENV{PATH} if all other options fail, then prompt the user for one. [Phred] Modified: perl/modperl/trunk/lib/Apache2/Status.pm URL: http://svn.apache.org/viewvc/perl/modperl/trunk/lib/Apache2/Status.pm?rev=1029211&r1=1029210&r2=1029211&view=diff ============================================================================== --- perl/modperl/trunk/lib/Apache2/Status.pm (original) +++ perl/modperl/trunk/lib/Apache2/Status.pm Sat Oct 30 21:59:46 2010 @@ -178,7 +178,8 @@ sub symdump { return install_hint("Devel::Symdump") unless has($r, "symdump"); - my $meth = lc($r->dir_config("StatusRdump")) eq "on" + # lc generates a (FATAL) warning if $r->dir_config is undef + my $meth = lc($r->dir_config("StatusRdump") || '') eq "on" ? "rnew" : "new"; my $sob = Devel::Symdump->$meth($package); return $sob->Apache2::Status::as_HTML($package, $r); Modified: perl/modperl/trunk/t/conf/extra.conf.in URL: http://svn.apache.org/viewvc/perl/modperl/trunk/t/conf/extra.conf.in?rev=1029211&r1=1029210&r2=1029211&view=diff ============================================================================== --- perl/modperl/trunk/t/conf/extra.conf.in (original) +++ perl/modperl/trunk/t/conf/extra.conf.in Sat Oct 30 21:59:46 2010 @@ -83,7 +83,7 @@ PerlModule TestExit::FromPerlModule # PerlSetVar StatusLexInfo On # PerlSetVar StatusDeparse On # PerlSetVar StatusDeparseOptions "-p -sC" -# PerlSetVar StatusTerse On + PerlSetVar StatusTerse On # PerlSetVar StatusTerseSize On # PerlSetVar StatusTerseSizeMainSummary On SetHandler modperl Modified: perl/modperl/trunk/t/hooks/authen_basic.t URL: http://svn.apache.org/viewvc/perl/modperl/trunk/t/hooks/authen_basic.t?rev=1029211&r1=1029210&r2=1029211&view=diff ============================================================================== --- perl/modperl/trunk/t/hooks/authen_basic.t (original) +++ perl/modperl/trunk/t/hooks/authen_basic.t Sat Oct 30 21:59:46 2010 @@ -21,6 +21,10 @@ sok { GET_OK $location, username => 'dougm', password => 'foo'; }; +# since LWP 5.815, the user agent retains credentials +# tell Apache::TestRequest to reinitialize its global agent +Apache::TestRequest::user_agent(reset => 1); + sok { ! GET_OK $location, username => 'dougm', password => 'wrong'; }; Modified: perl/modperl/trunk/t/hooks/authz.t URL: http://svn.apache.org/viewvc/perl/modperl/trunk/t/hooks/authz.t?rev=1029211&r1=1029210&r2=1029211&view=diff ============================================================================== --- perl/modperl/trunk/t/hooks/authz.t (original) +++ perl/modperl/trunk/t/hooks/authz.t Sat Oct 30 21:59:46 2010 @@ -16,6 +16,10 @@ ok $rc == 401; ok GET_OK $location, username => 'dougm', password => 'foo'; +# since LWP 5.815, the user agent retains credentials +# tell Apache::TestRequest to reinitialize its global agent +Apache::TestRequest::user_agent(reset => 1); + ok ! GET_OK $location, username => 'jobbob', password => 'whatever';