summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Constants.pm
diff options
context:
space:
mode:
authorMax Kanat-Alexander <mkanat@bugzilla.org>2010-12-06 19:59:23 +0100
committerMax Kanat-Alexander <mkanat@bugzilla.org>2010-12-06 19:59:23 +0100
commitb6006edb25d27ad3f527fd2889688dd788649fa5 (patch)
tree126ac0fd5966bbe3b76751faf08467c4bf74f975 /Bugzilla/WebService/Constants.pm
parentb82f8f683c7f3d396076b9c6b4b2aadf191c5625 (diff)
downloadbugzilla-b6006edb25d27ad3f527fd2889688dd788649fa5.tar.gz
bugzilla-b6006edb25d27ad3f527fd2889688dd788649fa5.tar.xz
Bug 617030 - Add an error code for json_rpc_invalid_callback, and fix the
regex used by _bz_callback in Bugzilla::WebService::Server::JSONRPC to accept numbers other than 0 or 1. r=LpSolit, a=mkanat
Diffstat (limited to 'Bugzilla/WebService/Constants.pm')
-rw-r--r--Bugzilla/WebService/Constants.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Constants.pm b/Bugzilla/WebService/Constants.pm
index 788f8bcc4..266ec3828 100644
--- a/Bugzilla/WebService/Constants.pm
+++ b/Bugzilla/WebService/Constants.pm
@@ -135,6 +135,7 @@ use constant WS_ERROR_CODE => {
xmlrpc_invalid_value => -32600,
unknown_method => -32601,
json_rpc_post_only => 32610,
+ json_rpc_invalid_callback => 32611,
};
# These are the fallback defaults for errors not in ERROR_CODE.