Skip Menu |

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

Report information
The Basics
Id: 32981
Status: resolved
Priority: 0/
Queue: CGI-Auth-Auto

People
Owner: Nobody in particular
Requestors: GRANTG [...] cpan.org
Cc:
AdminCc:

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



Subject: Tests/Module "use" fails due to CGI::PathInfo namespace conflict
Hey Leo, Looks like you have a great module here. Hope I get it running soon. :) CGI::Auth::Auto "requires" CGI::PathInfo in Makefile.PL, but when one does "cpan CGI::Auth::Auto", the tests fail because CPAN installs CGI::PathInfo 1.02 by Benjamin Franz, not the version that shows up as "LEOCHARRE::CGI::PathInfo" in search.cpan.org with "unauthorized release" in shiny red letters on the module's detail page. Need to rename that module perhaps? http://search.cpan.org/search?query=CGI%3A%3APathInfo&mode=all
To workaround this issue I renamed "CGI::PathInfo" to "CGI::Scriptpaths". Renamed module is attached (CGI-Auth-Auto-1.19.tar.gz) The following shell script handles renaming all occurrences of PathInfo to Scriptpaths in the CGI::Auth::Auto module (attached as "fix"): #!/bin/sh for file in META.yml Makefile.PL t/00.t lib/CGI/Auth/Auto.pm do mv $file $file.bkp if [ "$file" = "t/00.t" ] ; then grep -v PathInfo $file.bkp > $file else sed s/PathInfo/Scriptpaths/g $file.bkp > $file fi rm $file.bkp done (Note that CGI::PathInfo isn't used in t/00.t, so this script removes the reference to setting $CGI::PathInfo::DEBUG=1)
Download fix
application/octet-stream 271b

Message body not shown because it is not plain text.

Subject: Re: [rt.cpan.org #32981] Tests/Module "use" fails due to CGI::PathInfo namespace conflict
Date: Tue, 12 Feb 2008 10:59:03 -0500
To: bug-CGI-Auth-Auto [...] rt.cpan.org
From: "leo charre" <leocharre [...] gmail.com>
I've been looking into this. I will rename the module to CGI::Scriptpaths and upload the package. I take care not to upload modules into taken namespaces!! I don't know how I made such a stupid mistake On 2/6/08, GRANTG via RT <bug-CGI-Auth-Auto@rt.cpan.org> wrote: Show quoted text
> > > Queue: CGI-Auth-Auto > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=32981 > > > To workaround this issue I renamed "CGI::PathInfo" to > "CGI::Scriptpaths". Renamed module is > attached (CGI-Auth-Auto-1.19.tar.gz) > > The following shell script handles renaming all occurrences of PathInfo to > Scriptpaths in the > CGI::Auth::Auto module (attached as "fix"): > > #!/bin/sh > for file in META.yml Makefile.PL t/00.t lib/CGI/Auth/Auto.pm > do > mv $file $file.bkp > if [ "$file" = "t/00.t" ] ; then > grep -v PathInfo $file.bkp > $file > else > sed s/PathInfo/Scriptpaths/g $file.bkp > $file > fi > rm $file.bkp > done > > (Note that CGI::PathInfo isn't used in t/00.t, so this script removes the > reference to setting > $CGI::PathInfo::DEBUG=1) > >
-- Leo Charre
Subject: Re: [rt.cpan.org #32981] Tests/Module "use" fails due to CGI::PathInfo namespace conflict
Date: Tue, 12 Feb 2008 11:44:37 -0500
To: bug-CGI-Auth-Auto [...] rt.cpan.org
From: "leo charre" <leocharre [...] gmail.com>
I uploaded package CGI::Scriptpaths and CGI::Auth::Auto 1.20 (using CGI::Scriptpaths) to cpan. On 2/6/08, GRANTG via RT <bug-CGI-Auth-Auto@rt.cpan.org> wrote: Show quoted text
> > > Queue: CGI-Auth-Auto > Ticket <URL: http://rt.cpan.org/Ticket/Display.html?id=32981 > > > To workaround this issue I renamed "CGI::PathInfo" to > "CGI::Scriptpaths". Renamed module is > attached (CGI-Auth-Auto-1.19.tar.gz) > > The following shell script handles renaming all occurrences of PathInfo to > Scriptpaths in the > CGI::Auth::Auto module (attached as "fix"): > > #!/bin/sh > for file in META.yml Makefile.PL t/00.t lib/CGI/Auth/Auto.pm > do > mv $file $file.bkp > if [ "$file" = "t/00.t" ] ; then > grep -v PathInfo $file.bkp > $file > else > sed s/PathInfo/Scriptpaths/g $file.bkp > $file > fi > rm $file.bkp > done > > (Note that CGI::PathInfo isn't used in t/00.t, so this script removes the > reference to setting > $CGI::PathInfo::DEBUG=1) > >
-- Leo Charre