From 9b0a78fbcc3a3c5763e216da6dda8420379701a9 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Fri, 9 Jan 2009 07:44:05 +0000 Subject: Bug 471942: Make the WebService validate and properly convert input parameters Patch By Max Kanat-Alexander r=dkl, a=mkanat --- Bugzilla/WebService/Constants.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Bugzilla/WebService') diff --git a/Bugzilla/WebService/Constants.pm b/Bugzilla/WebService/Constants.pm index 07b51e5f1..4f98cd11a 100755 --- a/Bugzilla/WebService/Constants.pm +++ b/Bugzilla/WebService/Constants.pm @@ -48,11 +48,12 @@ use base qw(Exporter); # comment that it was retired. Also, if an error changes its name, you'll # have to fix it here. use constant WS_ERROR_CODE => { - # Generic Bugzilla::Object errors are 50-99. + # Generic errors (Bugzilla::Object and others) are 50-99. object_not_specified => 50, param_required => 50, params_required => 50, object_does_not_exist => 51, + xmlrpc_invalid_value => 52, # Bug errors usually occupy the 100-200 range. improper_bug_id_field_value => 100, bug_id_does_not_exist => 101, -- cgit v1.2.3-24-g4f1b