I figured out how we can return identical errors codes as XML-RPC--we just have to override _errors to adjust the error code.
Summary: JSON-RPC WebService should return errors identically coded as XML-RPC WebService → JSON-RPC WebService should return errors identically numerically coded as XML-RPC WebService
Created attachment 427726 [details] [diff] [review] v1 Okay, this fixes things, and it also standardizes the error format between JSON-RPC 1.0 and 1.1. (The JSON-RPC 1.0 spec actually doesn't specify an error format, and the error format that JSON::RPC was returning didn't include an error code.)
Assignee: webservice → mkanat
Status: NEW → ASSIGNED
Attachment #427726 - Flags: review?(dkl)
Comment on attachment 427726 [details] [diff] [review] v1 Looks good and works as described. r=dkl
Attachment #427726 - Flags: review?(dkl) → review+
Thanks. :-) Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/ modified Bugzilla/WebService/Server/JSONRPC.pm Committed revision 7024. Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/3.6/ modified Bugzilla/WebService/Server/JSONRPC.pm Committed revision 6998.
Status: ASSIGNED → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.