Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: users

RE: bric_soap problem: TRANSPORT ERROR: 500 -- solution

 

 

Bricolage users RSS feed   Index | Next | Previous | View Threaded


arnold at webit

Apr 12, 2008, 7:02 AM

Post #1 of 6 (167 views)
Permalink
RE: bric_soap problem: TRANSPORT ERROR: 500 -- solution

thx for all ...

got an solution for the problem:

my working (or better not working )version of LWP was 5.810,
i downgraded that module to version 5.808 via cpan like:
cpan G/GA/GAAS/libwww-perl-5.808.tar.gz
and after that my bric_soap is working

dont know what they did wrong in version 5.810...

maik

Am Freitag, den 11.04.2008, 21:14 +0200 schrieb Lanning, Scott:
> The first one isn't an error per se, but a warning.
> I think I submitted a patch for it to RT for SOAP::Lite:
>
> --- SOAP/Transport/HTTP.pm~ 2008-04-11 21:16:10.000000000 +0200
> +++ SOAP/Transport/HTTP.pm 2008-03-05 15:02:55.000000000 +0100
> @@ -37,9 +37,11 @@
> return if $_patched;
> BEGIN { local ($^W) = 0; }
> {
> + no warnings 'redefine';
> sub LWP::UserAgent::redirect_ok; *LWP::UserAgent::redirect_ok = sub {1}
> }
> {
> + no warnings 'redefine';
> package LWP::Protocol;
> my $collect = \&collect; # store original
> *collect = sub {
>
> though it doesn't address the underlying issue
> of "monkeypatching" LWP::UserAgent.
>
>
> -----Original Message-----
> From: Greg Heo [mailto:greg[at]node79.com]
> Sent: Fri 4/11/2008 7:48 PM
> To: users[at]lists.bricolage.cc
> Subject: Re: bric_soap problem: TRANSPORT ERROR: 500
>
> I'm running SOAP::Lite 0.71 on a 1.10.3 installation on FreeBSD 6.2.
> list_ids works, but throws a few warnings:
>
> $ bric_soap story list_ids
> Subroutine LWP::UserAgent::redirect_ok redefined at /usr/local/lib/
> perl5/site_perl/5.8.8/SOAP/Transport/HTTP.pm line 41.
> Subroutine LWP::Protocol::collect redefined at /usr/local/lib/perl5/
> site_perl/5.8.8/SOAP/Transport/HTTP.pm line 59.
> story_1024
> story_1025
> story_1026
> story_1030
>
> I tried bringing LWP::UserAgent up to the most recent version, and now
> it's worse:
> Subroutine LWP::UserAgent::redirect_ok redefined at /usr/local/lib/
> perl5/site_perl/5.8.8/SOAP/Transport/HTTP.pm line 41.
> Subroutine LWP::Protocol::collect redefined at /usr/local/lib/perl5/
> site_perl/5.8.8/SOAP/Transport/HTTP.pm line 59.
> TRANSPORT ERROR: 500 Server closed connection without sending any data
> back
> Check the Apache error log for more information.
>
> My OS X Bricolage installation with SOAP::Lite 0.69 works just fine
> though.
>
>
> On 11-Apr-08, at 12:35 PM, David E. Wheeler wrote:
> > On Apr 11, 2008, at 03:47, Maik Arnold wrote:
> >
> >> SOAP::Lite is in version 0.71, think is the newest version
> >
> > Something may well have changed, then. Anyone else running that
> > version without trouble?
> >
> > D
>
> ---
> Greg Heo
> web/software systems developer
> greg[at]node79.com
> 416.826.7630


bharder at methodlogic

Apr 12, 2008, 9:44 AM

Post #2 of 6 (157 views)
Permalink
Re: bric_soap problem: TRANSPORT ERROR: 500 -- solution [In reply to]

On Sat, Apr 12, 2008 at 04:02:29PM +0200, Maik Arnold wrote:
> thx for all ...
>
> got an solution for the problem:
>
> my working (or better not working )version of LWP was 5.810,
> i downgraded that module to version 5.808 via cpan like:
> cpan G/GA/GAAS/libwww-perl-5.808.tar.gz
> and after that my bric_soap is working
>
> dont know what they did wrong in version 5.810...

Are you saying that with SOAP::Lite 0.71, and only the LWP brought back 5.810->5.808, things now work, or did you change SOAP::Lite, too?

> maik
>
> Am Freitag, den 11.04.2008, 21:14 +0200 schrieb Lanning, Scott:
> > The first one isn't an error per se, but a warning.
> > I think I submitted a patch for it to RT for SOAP::Lite:
> >
> > --- SOAP/Transport/HTTP.pm~ 2008-04-11 21:16:10.000000000 +0200
> > +++ SOAP/Transport/HTTP.pm 2008-03-05 15:02:55.000000000 +0100
> > @@ -37,9 +37,11 @@
> > return if $_patched;
> > BEGIN { local ($^W) = 0; }
> > {
> > + no warnings 'redefine';
> > sub LWP::UserAgent::redirect_ok; *LWP::UserAgent::redirect_ok = sub {1}
> > }
> > {
> > + no warnings 'redefine';
> > package LWP::Protocol;
> > my $collect = \&collect; # store original
> > *collect = sub {
> >
> > though it doesn't address the underlying issue
> > of "monkeypatching" LWP::UserAgent.
> >
> >
> > -----Original Message-----
> > From: Greg Heo [mailto:greg[at]node79.com]
> > Sent: Fri 4/11/2008 7:48 PM
> > To: users[at]lists.bricolage.cc
> > Subject: Re: bric_soap problem: TRANSPORT ERROR: 500
> >
> > I'm running SOAP::Lite 0.71 on a 1.10.3 installation on FreeBSD 6.2.
> > list_ids works, but throws a few warnings:
> >
> > $ bric_soap story list_ids
> > Subroutine LWP::UserAgent::redirect_ok redefined at /usr/local/lib/
> > perl5/site_perl/5.8.8/SOAP/Transport/HTTP.pm line 41.
> > Subroutine LWP::Protocol::collect redefined at /usr/local/lib/perl5/
> > site_perl/5.8.8/SOAP/Transport/HTTP.pm line 59.
> > story_1024
> > story_1025
> > story_1026
> > story_1030
> >
> > I tried bringing LWP::UserAgent up to the most recent version, and now
> > it's worse:
> > Subroutine LWP::UserAgent::redirect_ok redefined at /usr/local/lib/
> > perl5/site_perl/5.8.8/SOAP/Transport/HTTP.pm line 41.
> > Subroutine LWP::Protocol::collect redefined at /usr/local/lib/perl5/
> > site_perl/5.8.8/SOAP/Transport/HTTP.pm line 59.
> > TRANSPORT ERROR: 500 Server closed connection without sending any data
> > back
> > Check the Apache error log for more information.
> >
> > My OS X Bricolage installation with SOAP::Lite 0.69 works just fine
> > though.
> >
> >
> > On 11-Apr-08, at 12:35 PM, David E. Wheeler wrote:
> > > On Apr 11, 2008, at 03:47, Maik Arnold wrote:
> > >
> > >> SOAP::Lite is in version 0.71, think is the newest version
> > >
> > > Something may well have changed, then. Anyone else running that
> > > version without trouble?
> > >
> > > D
> >
> > ---
> > Greg Heo
> > web/software systems developer
> > greg[at]node79.com
> > 416.826.7630
>

--

Brad Harder,
Method Digital Logic
http://www.methodlogic.net


david at kineticode

Apr 12, 2008, 4:32 PM

Post #3 of 6 (153 views)
Permalink
Re: bric_soap problem: TRANSPORT ERROR: 500 -- solution [In reply to]

On Apr 12, 2008, at 07:02, Maik Arnold wrote:

> my working (or better not working )version of LWP was 5.810,
> i downgraded that module to version 5.808 via cpan like:
> cpan G/GA/GAAS/libwww-perl-5.808.tar.gz
> and after that my bric_soap is working
>
> dont know what they did wrong in version 5.810...

Sounds like there's a bug somewhere…

D


arnold at webit

Apr 14, 2008, 1:31 AM

Post #4 of 6 (150 views)
Permalink
Re: bric_soap problem: TRANSPORT ERROR: 500 -- solution [In reply to]

Am Samstag, den 12.04.2008, 09:44 -0700 schrieb bharder:
> On Sat, Apr 12, 2008 at 04:02:29PM +0200, Maik Arnold wrote:
> > thx for all ...
> >
> > got an solution for the problem:
> >
> > my working (or better not working )version of LWP was 5.810,
> > i downgraded that module to version 5.808 via cpan like:
> > cpan G/GA/GAAS/libwww-perl-5.808.tar.gz
> > and after that my bric_soap is working
> >
> > dont know what they did wrong in version 5.810...
>
> Are you saying that with SOAP::Lite 0.71, and only the LWP brought back 5.810->5.808, things now work, or did you change SOAP::Lite, too?
>
i only downgraded the LWP module and my SOAP::Lite version is still 0.71

> > maik
> >
> > Am Freitag, den 11.04.2008, 21:14 +0200 schrieb Lanning, Scott:
> > > The first one isn't an error per se, but a warning.
> > > I think I submitted a patch for it to RT for SOAP::Lite:
> > >
> > > --- SOAP/Transport/HTTP.pm~ 2008-04-11 21:16:10.000000000 +0200
> > > +++ SOAP/Transport/HTTP.pm 2008-03-05 15:02:55.000000000 +0100
> > > @@ -37,9 +37,11 @@
> > > return if $_patched;
> > > BEGIN { local ($^W) = 0; }
> > > {
> > > + no warnings 'redefine';
> > > sub LWP::UserAgent::redirect_ok; *LWP::UserAgent::redirect_ok = sub {1}
> > > }
> > > {
> > > + no warnings 'redefine';
> > > package LWP::Protocol;
> > > my $collect = \&collect; # store original
> > > *collect = sub {
> > >
> > > though it doesn't address the underlying issue
> > > of "monkeypatching" LWP::UserAgent.
> > >
> > >
> > > -----Original Message-----
> > > From: Greg Heo [mailto:greg[at]node79.com]
> > > Sent: Fri 4/11/2008 7:48 PM
> > > To: users[at]lists.bricolage.cc
> > > Subject: Re: bric_soap problem: TRANSPORT ERROR: 500
> > >
> > > I'm running SOAP::Lite 0.71 on a 1.10.3 installation on FreeBSD 6.2.
> > > list_ids works, but throws a few warnings:
> > >
> > > $ bric_soap story list_ids
> > > Subroutine LWP::UserAgent::redirect_ok redefined at /usr/local/lib/
> > > perl5/site_perl/5.8.8/SOAP/Transport/HTTP.pm line 41.
> > > Subroutine LWP::Protocol::collect redefined at /usr/local/lib/perl5/
> > > site_perl/5.8.8/SOAP/Transport/HTTP.pm line 59.
> > > story_1024
> > > story_1025
> > > story_1026
> > > story_1030
> > >
> > > I tried bringing LWP::UserAgent up to the most recent version, and now
> > > it's worse:
> > > Subroutine LWP::UserAgent::redirect_ok redefined at /usr/local/lib/
> > > perl5/site_perl/5.8.8/SOAP/Transport/HTTP.pm line 41.
> > > Subroutine LWP::Protocol::collect redefined at /usr/local/lib/perl5/
> > > site_perl/5.8.8/SOAP/Transport/HTTP.pm line 59.
> > > TRANSPORT ERROR: 500 Server closed connection without sending any data
> > > back
> > > Check the Apache error log for more information.
> > >
> > > My OS X Bricolage installation with SOAP::Lite 0.69 works just fine
> > > though.
> > >
> > >
> > > On 11-Apr-08, at 12:35 PM, David E. Wheeler wrote:
> > > > On Apr 11, 2008, at 03:47, Maik Arnold wrote:
> > > >
> > > >> SOAP::Lite is in version 0.71, think is the newest version
> > > >
> > > > Something may well have changed, then. Anyone else running that
> > > > version without trouble?
> > > >
> > > > D
> > >
> > > ---
> > > Greg Heo
> > > web/software systems developer
> > > greg[at]node79.com
> > > 416.826.7630
> >
>


david at kineticode

Apr 14, 2008, 11:04 AM

Post #5 of 6 (145 views)
Permalink
Re: bric_soap problem: TRANSPORT ERROR: 500 -- solution [In reply to]

On Apr 14, 2008, at 01:31, Maik Arnold wrote:

>> Are you saying that with SOAP::Lite 0.71, and only the LWP brought
>> back 5.810->5.808, things now work, or did you change SOAP::Lite,
>> too?
>>
> i only downgraded the LWP module and my SOAP::Lite version is still
> 0.71

Yes, but what Scott sent a patch for is definitely a bug in
SOAP::Lite. If you apply that, does it then work with LWP 5.810?

Best,

David


david at kineticode

Apr 14, 2008, 7:11 PM

Post #6 of 6 (142 views)
Permalink
Re: bric_soap problem: TRANSPORT ERROR: 500 -- solution [In reply to]

On Apr 14, 2008, at 01:31, Maik Arnold wrote:

>> Are you saying that with SOAP::Lite 0.71, and only the LWP brought
>> back 5.810->5.808, things now work, or did you change SOAP::Lite,
>> too?
>>
> i only downgraded the LWP module and my SOAP::Lite version is still
> 0.71

Okay, I've figured out this issue, I think. I filed a bug report
against SOAP::Lite here:

http://rt.cpan.org/Ticket/Display.html?id=35041

I'm not sure if that's correct, but in the meantime, at least, this
workaround should fix the issue:

--- lib/Bric/SOAP/Handler.pm (revision 8046)
+++ lib/Bric/SOAP/Handler.pm (working copy)
@@ -137,6 +137,22 @@
}
}

+#if ( Bric::Config::ENCODE_OK && $SOAP::Lite::VERSION le '0.71.02' ) {
+if ( Bric::Config::ENCODE_OK ) {
+ # XXX Change the version number above as appropriate in response
to the
+ # resolution of http://rt.cpan.org/Ticket/Display.html?id=35041.
+ package SOAP::Serializer;
+ no warnings 'redefine';
+ eval q{
+ my $xmlize = \&xmlize;
+ *xmlize = sub {
+ my $ret = $xmlize->(@_);
+ Encode::_utf8_off($ret) if Encode::is_utf8($ret);
+ return $ret;
+ }
+ };
+}
+
my $commit = 1;

# dispatch to $SERVER->handler()

BTW, the version of SOAP::Lite I have is also 0.71. This seems to be
an "unofficial release." Anyone know what's up with maintainership of
that module?

Best,

David

Bricolage users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.