Needs review
Project:
JSONRPC Server
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
20 Aug 2011 at 12:11 UTC
Updated:
20 Aug 2011 at 13:32 UTC
Jump to comment: Most recent file
If the application trow an error (eg. use of services_error()) and provides an error code, the service still respond with JSONRPC_ERROR_INTERNAL_ERROR (-32603). This has to be a fallback when application's code lacks.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | jsonrpc_server-1255006-1.patch | 2.14 KB | claudiu.cristea |
| #1 | jsonrpc_server-1255006.patch | 1.32 KB | claudiu.cristea |
Comments
Comment #1
claudiu.cristeaHere's a patch that uses
JSONRPC_ERROR_INTERNAL_ERROR(-32603) only if the application has not sent an error code.Comment #2
claudiu.cristeaNew patch with some correction. "Exception" object doesn't have a getData method.