Skip Menu |

This queue is for tickets about the XML-Compile CPAN distribution.

Report information
The Basics
Id: 62281
Status: resolved
Priority: 0/
Queue: XML-Compile

People
Owner: Nobody in particular
Requestors: aleksey.mashanov [...] gmail.com
Cc:
AdminCc:

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



Subject: unsignedInt range
As described in XMLSchema, unsignedInt max value is 4294967295, but I see error "error: illegal value `2152992672' for type {http://www.w3.org/2001/XMLSchema}unsignedInt" Problem is in XML::Compile::Schema::BuiltInTypes: sub {$_[0] =~ m/^\s*\+?\s*\d[\s\d]*$/ && ($_[0] =~ tr/0-9//) <10} Must be 10 digits max, not 9.
Subject: Re: [rt.cpan.org #62281] unsignedInt range
Date: Tue, 19 Oct 2010 20:23:24 +0200
To: Aleksey Mashanov via RT <bug-XML-Compile [...] rt.cpan.org>
From: Mark Overmeer <solutions [...] overmeer.net>
* Aleksey Mashanov via RT (bug-XML-Compile@rt.cpan.org) [101019 19:41]: Show quoted text
> Tue Oct 19 13:41:31 2010: Request 62281 was acted upon. > Transaction: Ticket created by amashanov > Queue: XML-Compile > Subject: unsignedInt range > Requestors: aleksey.mashanov@gmail.com > Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=62281 > > > As described in XMLSchema, unsignedInt max value is 4294967295, but I > see error "error: illegal value `2152992672' for type > {http://www.w3.org/2001/XMLSchema}unsignedInt" > > Problem is in XML::Compile::Schema::BuiltInTypes: > sub {$_[0] =~ m/^\s*\+?\s*\d[\s\d]*$/ && ($_[0] =~ tr/0-9//) <10} > Must be 10 digits max, not 9.
You find nice bugs in corner cases. Thanks! -- Regards, MarkOv ------------------------------------------------------------------------ Mark Overmeer MSc MARKOV Solutions Mark@Overmeer.net solutions@overmeer.net http://Mark.Overmeer.net http://solutions.overmeer.net
fixed in 1.19