diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-04-22 11:52:45 -0700 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2010-04-22 11:52:45 -0700 |
commit | 5bb84b3c6efc503652a14e59efbe2b7c548608dd (patch) | |
tree | c75323c210888cc942678f892dc0b84cbf868410 /Bugzilla/WebService/Constants.pm | |
parent | d8e899bace75e1f4bd99443baaeaebac8b819251 (diff) | |
download | bugs-5bb84b3c6efc503652a14e59efbe2b7c548608dd.tar bugs-5bb84b3c6efc503652a14e59efbe2b7c548608dd.tar.gz bugs-5bb84b3c6efc503652a14e59efbe2b7c548608dd.tar.bz2 bugs-5bb84b3c6efc503652a14e59efbe2b7c548608dd.tar.xz bugs-5bb84b3c6efc503652a14e59efbe2b7c548608dd.zip |
Bug 550732: Allow read-only JSON-RPC methods to be called with GET
r=dkl, a=mkanat
Diffstat (limited to 'Bugzilla/WebService/Constants.pm')
-rw-r--r-- | Bugzilla/WebService/Constants.pm | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Bugzilla/WebService/Constants.pm b/Bugzilla/WebService/Constants.pm index 19d230759..0ada98ba4 100644 --- a/Bugzilla/WebService/Constants.pm +++ b/Bugzilla/WebService/Constants.pm @@ -120,10 +120,11 @@ use constant WS_ERROR_CODE => { user_access_by_id_denied => 505, user_access_by_match_denied => 505, - # RPC Server Errors. See the following URL: - # http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php - xmlrpc_invalid_value => -32600, - unknown_method => -32601, + # Errors thrown by the WebService itself. The ones that are negative + # conform to http://xmlrpc-epi.sourceforge.net/specs/rfc.fault_codes.php + xmlrpc_invalid_value => -32600, + unknown_method => -32601, + json_rpc_post_only => 32610, }; # These are the fallback defaults for errors not in ERROR_CODE. |