Skip Menu |

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

Report information
The Basics
Id: 58328
Status: resolved
Priority: 0/
Queue: JSON-RPC-Common

People
Owner: Nobody in particular
Requestors: mkanat [...] cpan.org
Cc:
AdminCc:

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



Subject: Marshal::Text fails when parsing non-error JSON-RPC 1.0 responses
Trying to parse a JSON-RPC 1.0 response with "error":null in it causes Marshal::Text to traceback with this as the top error: Attribute (message) does not pass the type constraint because: Validation failed for 'Str' failed with value undef at /usr/lib/perl5/vendor_perl/5.10.0/JSON/RPC/Common/Procedure/Return/Error. pm line 44 Here's the code to reproduce: use JSON::RPC::Common::Marshal::Text; my $m = JSON::RPC::Common::Marshal::Text->new; $m->json_to_return('{"error":null,"id":1,"result":1}');
Subject: Re: [rt.cpan.org #58328] Marshal::Text fails when parsing non-error JSON-RPC 1.0 responses
Date: Sat, 12 Jun 2010 02:19:43 +0300
To: bug-JSON-RPC-Common [...] rt.cpan.org
From: Yuval Kogman <nuffin [...] cpan.org>
Ugh.... I guess it'll have to be Maybe[...] then. Why not just spec it to be missing? *sigh*. Do you feel like contributing a test?
Resolved in 1a361df