summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2009-01-09 08:44:05 +0100
committermkanat%bugzilla.org <>2009-01-09 08:44:05 +0100
commit9b0a78fbcc3a3c5763e216da6dda8420379701a9 (patch)
treedd2af36481bf78282a78e307b17dbe435621de1c /Bugzilla/WebService
parent6c6de869047f9febda54cfb8121b636d35f9dc97 (diff)
downloadbugzilla-9b0a78fbcc3a3c5763e216da6dda8420379701a9.tar.gz
bugzilla-9b0a78fbcc3a3c5763e216da6dda8420379701a9.tar.xz
Bug 471942: Make the WebService validate and properly convert input parameters
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat
Diffstat (limited to 'Bugzilla/WebService')
-rwxr-xr-xBugzilla/WebService/Constants.pm3
1 files changed, 2 insertions, 1 deletions
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,