From 30c7fa92ac2d0c76443fcc47907487a9ff0186b2 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Tue, 12 Feb 2008 07:32:51 +0000 Subject: =?UTF-8?q?Bug=20384009:=20Global=20fields=20(priority,=20severity?= =?UTF-8?q?,=20OS,=20and=20platform)=20are=20required=20when=20using=20Web?= =?UTF-8?q?Service=20instead=20of=20using=20the=20defaults=20-=20Patch=20b?= =?UTF-8?q?y=20Fr=C3=83=C2=A9d=C3=83=C2=A9ric=20Buclin=20=20r/a=3Dmkanat?= 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.1