Skip Menu |

This queue is for tickets about the Data-FormValidator CPAN distribution.

Maintainer(s)' notes

This is the bug queue for Data::FormValidator.

Report information
The Basics
Id: 30126
Status: resolved
Priority: 0/
Queue: Data-FormValidator

People
Owner: Nobody in particular
Requestors: mst [...] shadowcatsystems.co.uk
Cc:
AdminCc:

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



Subject: untaint.t fails to add -I entries for PERL5LIB
Date: Fri, 19 Oct 2007 19:33:14 +0100
To: bug-Data-FormValidator [...] rt.cpan.org
From: Matt S Trout <mst [...] shadowcatsystems.co.uk>
This results in untaint.pl being unable to find Perl6::Junction if it isn't installed system-wide and thus the test fails. Please look at Test::Harness for an example of code unrolling PERL5LIB into -I statements, specifically to ensure .t files get the appropriate library path when using taint mode. This causes test failures for any user attempting to install to a ~/ lib path for example and thus makes Data::FormValidator uninstallable without force for any user on shared hosting, or developers attempting to maintain a private lib to reduce system installation requirements. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director http://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
Subject: Re: [rt.cpan.org #30126] untaint.t fails to add -I entries for PERL5LIB
Date: Fri, 19 Oct 2007 15:03:08 -0400
To: bug-Data-FormValidator [...] rt.cpan.org
From: Mark Stosberg <mark [...] summersault.com>
On Friday 19 October 2007 14:33, Matt S Trout via RT wrote: Show quoted text
> > This results in untaint.pl being unable to find Perl6::Junction if it > isn't installed system-wide and thus the test fails. > > Please look at Test::Harness for an example of code unrolling > PERL5LIB into -I statements, specifically to ensure .t files get the > appropriate library path when using taint mode. > > This causes test failures for any user attempting to install to a ~/ > lib path for example and thus makes Data::FormValidator uninstallable > without force for any user on shared hosting, or developers > attempting to maintain a private lib to reduce system installation > requirements.
Matt, Thanks for the clear report explaining the issue. I plan to address it. A patch would be welcome, or I'll get it to myself eventually. Mark
Subject: Re: [rt.cpan.org #30126] untaint.t fails to add -I entries for PERL5LIB
Date: Fri, 19 Oct 2007 20:16:38 +0100
To: "mark [...] summersault.com via RT" <bug-Data-FormValidator [...] rt.cpan.org>
From: Matt S Trout <mst [...] shadowcatsystems.co.uk>
On Fri, Oct 19, 2007 at 03:03:59PM -0400, mark@summersault.com via RT wrote: Show quoted text
> > <URL: http://rt.cpan.org/Ticket/Display.html?id=30126 > > > On Friday 19 October 2007 14:33, Matt S Trout via RT wrote:
> > > > This results in untaint.pl being unable to find Perl6::Junction if it > > isn't installed system-wide and thus the test fails. > > > > Please look at Test::Harness for an example of code unrolling > > PERL5LIB into -I statements, specifically to ensure .t files get the > > appropriate library path when using taint mode. > > > > This causes test failures for any user attempting to install to a ~/ > > lib path for example and thus makes Data::FormValidator uninstallable > > without force for any user on shared hosting, or developers > > attempting to maintain a private lib to reduce system installation > > requirements.
> > Matt, > > Thanks for the clear report explaining the issue. I plan to address it. > A patch would be welcome, or I'll get it to myself eventually.
My preference would be to replace the body of the test with - my @args = ( '-I./lib', ( (defined($ENV{PERL5LIB}) && length($ENV{PERL5LIB})) ? (map { "-I$_" } split(/:/, $ENV{PERL5LIB})) : () ), '-T', './t/untaint.pl', qw(Jim Beam jim@foo.bar james@bar.foo 132.10.10.2 Monroe Rufus 12345 oops 0) ); # We use $^X to make it easier to test with different versions of Perl. -mls system($^X, @args); (not done as a diff because, well, there didn't seem to be much point) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director http://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
Subject: Re: [rt.cpan.org #30126] untaint.t fails to add -I entries for PERL5LIB
Date: Fri, 19 Oct 2007 15:23:00 -0400
To: bug-Data-FormValidator [...] rt.cpan.org
From: Mark Stosberg <mark [...] summersault.com>
Show quoted text
> > My preference would be to replace the body of the test with - > > my @args = ( > '-I./lib', > ( (defined($ENV{PERL5LIB}) && length($ENV{PERL5LIB})) > ? (map { "-I$_" } split(/:/, $ENV{PERL5LIB})) > > : () > > ), > '-T', > './t/untaint.pl', > qw(Jim Beam jim@foo.bar james@bar.foo > 132.10.10.2 Monroe Rufus 12345 oops 0) > ); > > # We use $^X to make it easier to test with different versions of > Perl. -mls system($^X, @args); > > (not done as a diff because, well, there didn't seem to be much > point)
Excellent. Thank you Matt! Mark
Subject: Re: [rt.cpan.org #30126] untaint.t fails to add -I entries for PERL5LIB
Date: Fri, 19 Oct 2007 15:44:09 -0400
To: bug-Data-FormValidator [...] rt.cpan.org
From: Mark Stosberg <mark [...] summersault.com>
OK, I've sent 4.52 to CPAN with this fix. It is temporarily also available here: http://mark.stosberg.com/perl/Data-FormValidator-4.52.tar.gz I gave you credit in the Changes file. Thanks again Matt! Mark
released fix.