Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: jvdias [...] redhat.com
Cc:
AdminCc:

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



Subject: XMLRPC::Lite "wrong element 'nil'" exception on '<value><nil/></value>'
XMLRPC::Lite 0.68 generates an exception when a clause like: '<value><nil/></value>' is encountered in a legal methodResponse, like the one attached, is parsed. The same methodResponse parses fine with XML::Parse . The attached SOAP-Lite-0.68-nil-value.patch fixes the problem, and is already applied in the latest Fedora Extras perl-SOAP-Lite-0.68-1.fc6 RPM. Is there something not allowed about a '<value><nil/></value>' clause ? If so, please let us know what is wrong with it. If not, please apply the patch / fix the issue in the next perl-SOAP-Lite release - our big XMLRPC app generates lots of such clauses . Thank you, Jason Vas Dias<jvdias@redhat.com> perl package maintainer Red Hat, Inc.
Subject: methodResponse
Download methodResponse
application/octet-stream 774b

Message body not shown because it is not plain text.

Subject: SOAP-Lite-0.68-nil-value.patch
--- SOAP-Lite-0.68/lib/XMLRPC/Lite.pm.nil_value 2004-11-14 14:30:50.000000000 -0500 +++ SOAP-Lite-0.68/lib/XMLRPC/Lite.pm 2006-07-18 13:06:53.000000000 -0400 @@ -286,6 +286,8 @@ return +{map {$self->decode_object($_)} @{$children || []}}; } elsif ($name =~ /^(?:param|fault)$/) { return scalar(($self->decode_object($children->[0]))[1]); + } elsif ($name =~ /^(?:nil)$/) { + return undef; } else { die "wrong element '$name'\n"; }
From: lubo.rintel [...] gooddata.com
Ping on this? I'm wondering if there's a chance anyone will take a look at this? Fedora is including the patch for quite some now, and it proved very useful at least when talking to python's XML-RPC implementation which uses this extension to represent None. It is simple enough not to be hard to review :)
Applied in SVN. Thanks for the reminder - It's hard to find out from the mass of reports which one are still relvant. Martin
From: rosie86
I just wondered how soon this would go into a release from svn. I've added support for the nil extension to Bugzilla https://bugzilla.mozilla.org/show_bug.cgi?id=477593. However we're waiting for this to go into a release to solve https://bugzilla.mozilla.org/show_bug.cgi?id=494427. In the patch attached to bug #477593 (linked to above) I've also added nil support in the serializer by overriding it which hopefully wouldn't be too hard to implement in the XMLRPC::Lite module.
fixed in <=0.712