Skip Menu |

This queue is for tickets about the SOAP-Lite CPAN distribution.

Report information
The Basics
Id: 106688
Status: open
Priority: 0/
Queue: SOAP-Lite

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

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



Subject: SOAP/Transport/HTTP/CGI.t fails
Hi, I'm having problems with SOAP::Lite 1.19: prove -Ilib -v t/SOAP/Transport/HTTP/CGI.t t/SOAP/Transport/HTTP/CGI.t .. not ok 1 - return utf8 string not ok 2 - utf8 content: Ã�berall # Failed test 'return utf8 string' # at t/SOAP/Transport/HTTP/CGI.t line 62. # Failed test 'utf8 content: Ã�berall' # at t/SOAP/Transport/HTTP/CGI.t line 64. # got: 'Ã�berall' # expected: 'Überall' 1..2 # Looks like you failed 2 tests of 2. Dubious, test returned 2 (wstat 512, 0x200) Failed 2/2 subtests Test Summary Report ------------------- t/SOAP/Transport/HTTP/CGI.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 Files=1, Tests=2, 1 wallclock secs ( 0.03 usr 0.01 sys + 0.12 cusr 0.02 csys = 0.18 CPU) Result: FAIL perl 5.22.0, Red Hat Enterprise Linux Server release 6.6. Almost fresh of perl via perlbrew Thanks
Subject: Re: [rt.cpan.org #106688] SOAP/Transport/HTTP/CGI.t fails
Date: Thu, 27 Aug 2015 06:26:10 +0000
To: bug-SOAP-Lite [...] rt.cpan.org
From: Fred Moyer <fred [...] redhotpenguin.com>
Thanks for the report. Can you try the following patch? diff --git a/t/SOAP/Transport/HTTP/CGI.t b/t/SOAP/Transport/HTTP/CGI.t index e4d988e..18914ac 100644 --- a/t/SOAP/Transport/HTTP/CGI.t +++ b/t/SOAP/Transport/HTTP/CGI.t @@ -47,6 +47,9 @@ no warnings qw(redefine once uninitialized); use Test::More; use SOAP::Lite; # +trace; +use utf8; +use Encode; + my $soap = SOAP::Lite->new()->proxy('http://'); @@ -61,7 +64,7 @@ my $result = $som->result; if ($] >= 5.008) { ok utf8::is_utf8($result), 'return utf8 string'; { - is $result, 'Überall', 'utf8 content: ' . $result; + is $result, Encode::encode_utf8('Überall'), 'utf8 content: ' . $result; } } else { On Wed, Aug 26, 2015 at 8:47 PM Dan Horne via RT <bug-SOAP-Lite@rt.cpan.org> wrote: Show quoted text
> Wed Aug 26 23:47:02 2015: Request 106688 was acted upon. > Transaction: Ticket created by DHORNE > Queue: SOAP-Lite > Subject: SOAP/Transport/HTTP/CGI.t fails > Broken in: 1.19 > Severity: (no value) > Owner: Nobody > Requestors: dhorne@cpan.org > Status: new > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=106688 > > > > Hi, I'm having problems with SOAP::Lite 1.19: > > prove -Ilib -v t/SOAP/Transport/HTTP/CGI.t > t/SOAP/Transport/HTTP/CGI.t .. > not ok 1 - return utf8 string > not ok 2 - utf8 content: Ã�berall > > # Failed test 'return utf8 string' > # at t/SOAP/Transport/HTTP/CGI.t line 62. > > # Failed test 'utf8 content: Ã�berall' > # at t/SOAP/Transport/HTTP/CGI.t line 64. > # got: 'Ã�berall' > # expected: 'Überall' > 1..2 > # Looks like you failed 2 tests of 2. > Dubious, test returned 2 (wstat 512, 0x200) > Failed 2/2 subtests > > Test Summary Report > ------------------- > t/SOAP/Transport/HTTP/CGI.t (Wstat: 512 Tests: 2 Failed: 2) > Failed tests: 1-2 > Non-zero exit status: 2 > Files=1, Tests=2, 1 wallclock secs ( 0.03 usr 0.01 sys + 0.12 cusr > 0.02 csys = 0.18 CPU) > Result: FAIL > > > perl 5.22.0, Red Hat Enterprise Linux Server release 6.6. Almost fresh of > perl via perlbrew > > Thanks > > > >
Hi - I'm afriad that this didn't help On Thu Aug 27 02:26:30 2015, fred@redhotpenguin.com wrote: Show quoted text
> Thanks for the report. Can you try the following patch? > > diff --git a/t/SOAP/Transport/HTTP/CGI.t b/t/SOAP/Transport/HTTP/CGI.t > index e4d988e..18914ac 100644 > --- a/t/SOAP/Transport/HTTP/CGI.t > +++ b/t/SOAP/Transport/HTTP/CGI.t > @@ -47,6 +47,9 @@ no warnings qw(redefine once uninitialized); > > use Test::More; > use SOAP::Lite; # +trace; > +use utf8; > +use Encode; > + > my $soap = SOAP::Lite->new()->proxy('http://'); > > > @@ -61,7 +64,7 @@ my $result = $som->result; > if ($] >= 5.008) { > ok utf8::is_utf8($result), 'return utf8 string'; > { > - is $result, 'Überall', 'utf8 content: ' . $result; > + is $result, Encode::encode_utf8('Überall'), 'utf8 content: ' . > $result; > } > } > else { > > On Wed, Aug 26, 2015 at 8:47 PM Dan Horne via RT <bug-SOAP-Lite@rt.cpan.org> > wrote: >
> > Wed Aug 26 23:47:02 2015: Request 106688 was acted upon. > > Transaction: Ticket created by DHORNE > > Queue: SOAP-Lite > > Subject: SOAP/Transport/HTTP/CGI.t fails > > Broken in: 1.19 > > Severity: (no value) > > Owner: Nobody > > Requestors: dhorne@cpan.org > > Status: new > > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=106688 > > > > > > > Hi, I'm having problems with SOAP::Lite 1.19: > > > > prove -Ilib -v t/SOAP/Transport/HTTP/CGI.t > > t/SOAP/Transport/HTTP/CGI.t .. > > not ok 1 - return utf8 string > > not ok 2 - utf8 content: Ã�berall > > > > # Failed test 'return utf8 string' > > # at t/SOAP/Transport/HTTP/CGI.t line 62. > > > > # Failed test 'utf8 content: Ã�berall' > > # at t/SOAP/Transport/HTTP/CGI.t line 64. > > # got: 'Ã�berall' > > # expected: 'Überall' > > 1..2 > > # Looks like you failed 2 tests of 2. > > Dubious, test returned 2 (wstat 512, 0x200) > > Failed 2/2 subtests > > > > Test Summary Report > > ------------------- > > t/SOAP/Transport/HTTP/CGI.t (Wstat: 512 Tests: 2 Failed: 2) > > Failed tests: 1-2 > > Non-zero exit status: 2 > > Files=1, Tests=2, 1 wallclock secs ( 0.03 usr 0.01 sys + 0.12 cusr > > 0.02 csys = 0.18 CPU) > > Result: FAIL > > > > > > perl 5.22.0, Red Hat Enterprise Linux Server release 6.6. Almost fresh of > > perl via perlbrew > > > > Thanks > > > > > > > >
Hi - this is working now. Turns out expat and XML::Parser wasn't installed. I don't know how the cpan shell got as far as running the tests if these were missing, but it's working now. Sorry for inconvenience
Subject: Re: [rt.cpan.org #106688] SOAP/Transport/HTTP/CGI.t fails
Date: Fri, 28 Aug 2015 10:47:14 -0700
To: bug-SOAP-Lite [...] rt.cpan.org
From: Fred Moyer <fred [...] redhotpenguin.com>
No problem - I'll have to test that without those installed. I've gone ahead and committed those changes as they need to be made anyway. On Thu, Aug 27, 2015 at 5:37 PM Dan Horne via RT <bug-SOAP-Lite@rt.cpan.org> wrote: Show quoted text
> Queue: SOAP-Lite > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=106688 > > > Hi - this is working now. Turns out expat and XML::Parser wasn't > installed. I don't know how the cpan shell got as far as running the tests > if these were missing, but it's working now. Sorry for inconvenience >