Skip Menu |

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

Report information
The Basics
Id: 58471
Status: new
Priority: 0/
Queue: JSON-RPC

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

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



Subject: Client does not properly handle error responses from JSON-RPC 1.1 HTTP servers
Per the JSON-RPC 1.1 WD, JSON-RPC HTTP servers MUST return a 500 error if returning an error from the procedure: http://json-rpc.org/wd/JSON-RPC-1-1-WD-20060807.html#ResponseStatusCodes However, JSON::RPC::Client::call checks $response->is_success, and thus returns undef if the response code is a 500, instead of properly checking the call for content and parsing it.