Re: Frontier::RPC2 bug

"Ken MacLeod" <[email protected]>
Newsgroups gmane.text.xml.rpc.specification
Message-ID <[email protected]>
On 5/3/06, Craig Manley <[email protected]> wrote:
> I found a bug in Frontier::RPC2. The automatic encoding of scalars
> doesn't conform to the specs when a long string of digits is passed into
> the _scalar method.
>
> The fix is easy.:
>
> Just replace this line....
>
> if ($value =~ /^[+-]?\d+$/) {
>
> with this line....
>
> if (($value =~ /^[+-]?\d{1,10}$/) && ($value <= 2147483647)  && ($value
>  >= -2147483648))  {
>
> Could you please let me know if you plan to fix this?

I'm not maintaining this module anymore, but I'm Cc'ing to the xml-rpc
list in case anyone searches for it.  You might also consider posting
the fix at RT.cpan.org,

    http://rt.cpan.org/Public/Dist/Display.html?Name=Frontier-RPC

That said, I am aware of folks who have used Frontier-RPC with big
integers that don't meet the spec.  A released update should include
an option to allow big ints.

  -- Ken


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/xml-rpc/

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.