Skip Menu |

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

Report information
The Basics
Id: 35041
Status: resolved
Priority: 0/
Queue: SOAP-Lite

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

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



Subject: SOAP::Lite Passes Decoded Strings to LWP
Date: Mon, 14 Apr 2008 18:35:26 -0700
To: bug-SOAP-Lite [...] rt.cpan.org
From: "David E. Wheeler" <dwheeler [...] cpan.org>
Since LWP 5.810, SOAP::Lite has been emitting this error: HTTP::Message content not bytes at /usr/local/lib/perl5/site_perl/ 5.10.0/SOAP/Transport/HTTP.pm line 426 This is because LWP 5.810 and later properly checks strings passed to it to make sure that the utf8 flag is false. Only bytes should be passed to LWP::Message, not unencoded Perl strings. This patch fixes the issue for me, though I find the internals of SOAP::Lite to be bewildering enough not to know if this is the best spot for it. --- lib/SOAP/Lite.org 2008-04-14 18:30:15.000000000 -0700 +++ lib/SOAP/Lite.pm 2008-04-14 18:34:58.000000000 -0700 @@ -1613,7 +1613,13 @@ # return $self->context->packager->package($self- Show quoted text
>xmlize($encoded));
} - return $self->xmlize($encoded); + my $ret = $self->xmlize($encoded); + if ( $] > 5.007 ) { + require Encode; + return Encode::encode( $self->encoding, $ret ) + if Encode::is_utf8($ret); + } + return $ret; } # ====================================================================== Best, David
Hi David, I've chosen some place closer to LWP - but it's fixed in v0.71.03, uploaded to CPAN a few minutes ago. Thanks for reporting, Martin
Subject: Re: [rt.cpan.org #35041] SOAP::Lite Passes Decoded Strings to LWP
Date: Fri, 18 Apr 2008 14:22:25 -0700
To: bug-SOAP-Lite [...] rt.cpan.org
From: David E. Wheeler <DWHEELER [...] cpan.org>
On Apr 17, 2008, at 13:46, Martin Kutter via RT wrote: Show quoted text
> I've chosen some place closer to LWP - but it's fixed in v0.71.03, > uploaded to CPAN a few minutes ago.
Cool, thanks. BTW, I reported to the cpansearch bugs link (cpansearch@perl.org) about how search.cpan.org seems to show that you are not a maintainer of SOAP::Lite, even though I'm able to install your releases via CPAN.pm. Best, David
Subject: Re: [rt.cpan.org #35041] SOAP::Lite Passes Decoded Strings to LWP
Date: Sat, 19 Apr 2008 10:53:04 +0200
To: bug-SOAP-Lite [...] rt.cpan.org
From: Martin Kutter <martin.kutter [...] fen-net.de>
Hi David, the missing index on SOAP-Lite on search.cpan.org is due to some old namespaces conflict introduced in (I think) 0.63 - there's a SOAP::Packager module in both the SOAP and the SOAP-Lite distribution. I'm working on resolving it, but as renaming the module will break things, I can't just do it without preparations. Thanks, Martin