Skip Menu |

This queue is for tickets about the JSON CPAN distribution.

Report information
The Basics
Id: 18959
Status: resolved
Priority: 0/
Queue: JSON

People
Owner: Nobody in particular
Requestors: rcaputo [...] pobox.com
Cc:
AdminCc:

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



Subject: JSON::Converter treats strings that look like numbers as numbers.
Date: Thu, 27 Apr 2006 16:52:35 -0400
To: bug-json [...] rt.cpan.org
From: Rocco Caputo <rcaputo [...] pobox.com>
From the attached test case: # JSON::Converter is treating strings that look like numbers as # numbers. For example, the string "08" looks like an invalid octal # number. JSON::Parser is treating them as numbers and is rightfully # blowing up on invalid characters such as "8" and "." in octal # values. -- Rocco Caputo - rcaputo@cpan.org
Download json-octal.perl
application/octet-stream 669b

Message body not shown because it is not plain text.

From: holstein [...] notezbien.net
Le Jeu. Avr. 27 16:52:58 2006, rcaputo@pobox.com a écrit : Show quoted text
> From the attached test case: > > # JSON::Converter is treating strings that look like numbers as > # numbers. For example, the string "08" looks like an invalid octal > # number. JSON::Parser is treating them as numbers and is rightfully > # blowing up on invalid characters such as "8" and "." in octal > # values. >
Bug confirmed here; this bug bit us too. A string that looks like '008541' is treated like octal, even if it is then an invalid number, and make the whole request fail (but without an explicit error message for us).
Thanks to your report. I released fixed version.