Skip Menu |

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

Report information
The Basics
Id: 20707
Status: new
Priority: 0/
Queue: SOAP-Lite

Owner: Nobody in particular
Requestors: [...]

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

Subject: "<" not escaped in hash keys in methodResponse
It looks like whatever encodes hash structures as XML doesn't escape "<" characters if they appear in hash keys. Works fine for hash values with "<" characters, though. ----- in httpd.conf ----- <Location /webwork2_rpc> SetHandler perl-script PerlHandler Apache::XMLRPC::Lite PerlSetVar dispatch_to "WeBWorK::RPC" </Location> ----- in WeBWorK/ ----- package WeBWorK::RPC; sub hi { my %foo; $foo{"the < message"} = "hello world"; $foo{"another_thing"} = "bar"; return \%foo; } ----- in ----- my $rpc = XMLRPC::Lite->proxy("; my $result = $rpc->call("WeBWorK.RPC.hi"); Show quoted text
----- the result ----- not well-formed (invalid token) at line 1, column 103, byte 103 at /usr/local/lib/perl5/site_perl/5.8.8/mach/XML/ line 187 <?xml version="1.0" encoding="UTF-8"?><methodResponse><params><param><value><struct><member><name>the < message</name><value><string>hello world</string></value></member><member><name>another_thing</name><value><string>bar &lt; foo</string></value></member></struct></value></param></params></methodResponse> at line 14
From: [...]
Download (untitled) / with headers
text/plain 171b
Whoops, I messed up ----- in ----- my $rpc = XMLRPC::Lite->proxy(""); my $result = $rpc->call("WeBWorK.RPC.hi");

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to