This queue is for tickets about the CPAN CPAN distribution.

Report information
The Basics
Id:
71982
Status:
resolved
Priority:
Low/Low
Queue:

People
Owner:
Nobody in particular
Requestors:
winfree [...] gmx.de
Cc:
AdminCc:

BugTracker
Severity:
(no value)
Broken in:
(no value)
Fixed in:
2.10



Subject: CPAN: Bug in CPAN::HTTP::Credentials 1.9600
Date: Thu, 27 Oct 2011 16:37:38 +0200
To: bug-CPAN@rt.cpan.org
From: winfree@gmx.de
Hi, I updated several modules using the cpan shell, including CPAN itself. I updated CPAN to 1.9800 and afterwards ran into problems. (This happened with a Perl 5.12.x on Windows XP and with a Perl 5.14.x on Fedora 15) My systems must use a proxy (without credentials) to access the internet, and since this update I cannot fetch any files via cpan shell. I get this message: Fetching with LWP: http://cpan.strawberryperl.com/authors/id/R/RJ/RJBS/CPAN-Mini-1.111007.tar.gz Catching error: "Undefined subroutine &CPAN::HTTP::Credentials::_clear_non_proxy_credentials called at D:\\perl\\perl\\lib/CPAN/HTTP/Credentials.pm line 10, <IN> line 1.\cJ" at D:/perl/perl/lib/CPAN.pm line 391 CPAN::shell() called at D:/perl/perl/lib/App/Cpan.pm line 295 App::Cpan::_process_options('App::Cpan') called at D:/perl/perl/lib/App/Cpan.pm line 364 App::Cpan::run('App::Cpan') called at D:\perl\perl\bin/cpan line 8 A manual downgrade to CPAN-1.9600 did not solve this. I downloaded the CPAN-1.9800.tar.gz and checked the included files. CPAN::HTTP::Credentials is included as Version 1.9600 which contains the following code: sub clear_credentials { _clear_non_proxy_credentials(); _clear_proxy_credentials(); } sub clear_non_proxy_credentials { undef $USER; undef $PASSWORD; } sub clear_proxy_credentials { undef $PROXY_USER; undef $PROXY_PASSWORD; } I modified the code and modified the sub declarations (I added the "_" to the function names) and afterwards I could use the cpan shell again. So, I think the fix is to rename the two sub routines to: sub _clear_non_proxy_credentials { undef $USER; undef $PASSWORD; } sub _clear_proxy_credentials { undef $PROXY_USER; undef $PROXY_PASSWORD; } Sorry for the bad style. I'm a little out of time and had to hurry ;) Regards, Linuxer -- NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie! Jetzt informieren: http://www.gmx.net/de/go/freephone
From: bitcard@daedalus.co.uk
This bug is still in status "new" after 3 years. The bug breaks the module for people who have to use a proxy. It's a very simple bugfix, can it be prioritized please?
On Wed Sep 24 07:10:59 2014, bitcard@daedalus.co.uk wrote:
Show quoted text
> This bug is still in status "new" after 3 years. The bug breaks the > module for people who have to use a proxy. It's a very simple bugfix, > can it be prioritized please?
FWIW, I believe this PR fixes the issue: https://github.com/andk/cpanpm/pull/57
Subject: Re: [rt.cpan.org #71982] CPAN: Bug in CPAN::HTTP::Credentials 1.9600
Date: Fri, 26 Sep 2014 02:49:17 +0200
To: bug-CPAN@rt.cpan.org
From: Andreas Koenig <andreas.koenig.7os6VVqR@franz.ak.mind.de>
Show quoted text
>>>>> On Wed, 24 Sep 2014 09:50:21 -0400, "David Golden via RT" <bug-CPAN@rt.cpan.org> said:
Show quoted text
> FWIW, I believe this PR fixes the issue: https://github.com/andk/cpanpm/pull/57
Thanks for the pointer, applied at least in the repo now. Trial release will follow ASAP. -- andreas


This service runs on Request Tracker, is sponsored by The Perl Foundation, and maintained by Best Practical Solutions.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.