Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the WWW-Mechanize CPAN distribution.

Report information
The Basics
Id: 4485
Status: resolved
Priority: 0/
Queue: WWW-Mechanize

People
Owner: andy [...] petdance.com
Requestors: andy [...] petdance.com
kobrien [...] sonypictures.com
Cc:
AdminCc:

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



Subject: LWP 5.76 redirect handling breaks Mech
Redirects under LWP 5.76 break Mech. From http://search.cpan.org/src/GAAS/libwww-perl-5.76/Changes Revised handling of redirects. - clear our content and content headers if we rewrite request as GET - pass $response to redirect_ok() In Mech itself, t/live/back.t breaks, but the issue is a bigger one than just that file. I think that we need more Mech tests to validate redirect handling.
Show quoted text
> - pass $response to redirect_ok()
Hmmm, maybe the API for redirect_ok() is now different....
Subject: make test fails for live/back.t
make test fails at the t/live/back.t test and says that it can't call method "request" on undefined value in LWP/UserAgent. I've verified that LWP is installed correctly but I still get the failure. Any ideas? make test output: PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t t/live/*.t t/00.load.............ok t/98.rules............ok t/add_header..........ok t/area_link...........ok t/autocheck...........skipped all skipped: Test::Exception required to test autocheck t/click...............ok t/die.................skipped all skipped: Test::Exception required to test die t/failure.............ok t/field...............ok t/find_link...........ok t/follow..............ok t/form-parsing........ok t/form................ok t/frames..............ok t/get.................ok t/link................ok t/live/back...........ok 25/31Can't call method "request" on an undefined value at /usr/local/lib/perl5/site_perl/5.8.2/LWP/UserAgent.pm line 528. # Looks like you planned 31 tests but only ran 25. # Looks like your test died just after 25. t/live/back...........dubious Test returned status 255 (wstat 65280, 0xff00) DIED. FAILED tests 26-31 Failed 6/31 tests, 80.65% okay t/live/click..........ok t/live/follow.........ok t/live/follow_link....ok t/live/form...........ok t/live/get............ok t/live/reload.........ok t/live/submit.........ok t/mech-dump...........ok t/new.................ok t/page_stack..........ok t/pod.................skipped all skipped: Test::Pod 1.00 required for testing POD t/referer.............ok t/regex-error.........skipped all skipped: Test::Warn required to test t/regex-error.t t/reload..............ok t/submit..............ok t/tick................ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t/live/back.t 255 65280 31 12 38.71% 26-31 4 tests skipped. Failed 1/33 test scripts, 96.97% okay. 6/381 subtests failed, 98.43% okay. make: *** [test_dynamic] Error 29 perl -v output: Summary of my perl5 (revision 5.0 version 8 subversion 2) configuration: Platform: osname=linux, osvers=2.4.20-20.7smp, archname=i686-linux uname='linux qw-cvs.sonypictures.com 2.4.20-20.7smp #1 smp mon aug 18 14:46:14 edt 2003 i686 unknown ' config_args='' hint=recommended, useposix=true, d_sigaction=define usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef useperlio=define d_sfio=undef uselargefiles=define usesocks=undef use64bitint=undef use64bitall=undef uselongdouble=undef usemymalloc=n, bincompat5005=undef Compiler: cc='cc', ccflags ='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm', optimize='-O2', cppflags='-fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm' ccversion='', gccversion='2.96 20000731 (Red Hat Linux 7.3 2.96-113)', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8 alignbytes=4, prototype=define Linker and Libraries: ld='cc', ldflags =' -L/usr/local/lib' libpth=/usr/local/lib /lib /usr/lib libs=-lnsl -lndbm -lgdbm -ldl -lm -lcrypt -lutil -lc perllibs=-lnsl -ldl -lm -lcrypt -lutil -lc libc=/lib/libc-2.2.5.so, so=so, useshrplib=false, libperl=libperl.a gnulibc_version='2.2.5' Dynamic Linking: dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-rdynamic' cccdlflags='-fpic', lddlflags='-shared -L/usr/local/lib' Characteristics of this binary (from libperl): Compile-time options: USE_LARGE_FILES Built under linux Compiled at Nov 21 2003 16:09:38 @INC: /usr/local/lib/perl5/5.8.2/i686-linux /usr/local/lib/perl5/5.8.2 /usr/local/lib/perl5/site_perl/5.8.2/i686-linux /usr/local/lib/perl5/site_perl/5.8.2 /usr/local/lib/perl5/site_perl . uname -a output: Linux qw-cvs.sonypictures.com 2.4.20-20.7smp #1 SMP Mon Aug 18 14:46:14 EDT 2003 i686 unknown
Fixed in 0.67.