From 30c7fa92ac2d0c76443fcc47907487a9ff0186b2 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 12 Feb 2008 07:32:51 +0000 Subject: Bug 384009: Global fields (priority, severity, OS, and platform) are required when using WebService instead of using the defaults - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/WebService/Bug.pm | 14 +++++++++----- Bugzilla/WebService/Constants.pm | 1 + 2 files changed, 10 insertions(+), 5 deletions(-) (limited to 'Bugzilla/WebService') diff --git a/Bugzilla/WebService/Bug.pm b/Bugzilla/WebService/Bug.pm index 01d5c16eb..44180cc14 100755 --- a/Bugzilla/WebService/Bug.pm +++ b/Bugzilla/WebService/Bug.pm @@ -123,11 +123,6 @@ sub create { $field_values{$field_name} = $params->{$field}; } - # Make sure all the required fields are in the hash. - foreach my $field (Bugzilla::Bug::REQUIRED_CREATE_FIELDS) { - $field_values{$field} = undef unless exists $field_values{$field}; - } - # WebService users can't set the creation date of a bug. delete $field_values{'creation_ts'}; @@ -504,6 +499,15 @@ in them. The error message will have more details. =back +=item B + +=over + +=item Before B<3.0.4>, parameters marked as B were actually +B, due to a bug in Bugzilla. + +=back + =back =item C B diff --git a/Bugzilla/WebService/Constants.pm b/Bugzilla/WebService/Constants.pm index f12c5ecd2..85640d1bc 100755 --- a/Bugzilla/WebService/Constants.pm +++ b/Bugzilla/WebService/Constants.pm @@ -52,6 +52,7 @@ use base qw(Exporter); use constant WS_ERROR_CODE => { # Generic Bugzilla::Object errors are 50-99. object_name_not_specified => 50, + param_required => 50, object_does_not_exist => 51, # Bug errors usually occupy the 100-200 range. improper_bug_id_field_value => 100, -- cgit v1.2.3-24-g4f1b