Skip Menu | will be shut down on March 1st, 2021.

This queue is for tickets about the Frontier-RPC CPAN distribution.

Report information
The Basics
Id: 76600
Status: new
Priority: 0/
Queue: Frontier-RPC

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

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

Subject: sub decode fails to decode values of type double when using 'use-objects'
Date: Mon, 16 Apr 2012 17:07:12 +0200
To: bug-Frontier-RPC [...]
From: Herwin Weststrate <herwin [...]>
When running the method 'decode' on a valid XML-RPC input with the option 'use-objects' on, every entry should be encoded as a Frontier::RPC::<datatype> object. This fails on the type double, the module does have code to convert a float but the float is not defined in the specifications of XML-RPC ( An example input may look like this: <?xml version="1.0"?> <methodCall> <methodName>perform_actions</methodName> <params> <param><name>some_string</name><value><string>X</string></value> </param> <param><name>some_double</name><value><double>1.2</double></value> </param> </params> </methodCall> When running it through this conversion code (shortened version): my $coder = Frontier::RPC2->new('encoding' => 'UTF-8', 'use_objects' => 1); my $test = $coder->decode($data); print Dumper($test); The ouput does look like this (with only relevan fields shown): 'value' => [ bless( do{\(my $o = 'X')}, 'Frontier::RPC2::String' ), '1.2' ] The attached patch fixes this problem -- Herwin Weststrate
text/x-diff 1.8k

Message body is not shown because sender requested not to inline it.

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

Please report any issues with to