From 5d2512f3f34d085f698a3dffad80e575beeaed77 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Mon, 25 Aug 2008 20:43:02 +0000 Subject: [PATCH] =?utf8?q?Bug=20446327=20=C3=A2=C2=80=C2=93=20WebService?= =?utf8?q?=20faultCode=20is=20a=20string=20when=20a=20script=20"die"s=20Pa?= =?utf8?q?tch=20By=20Max=20Kanat-Alexander=20=20r=3Dd?= =?utf8?q?kl,=20a=3Dmkanat?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- xmlrpc.cgi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xmlrpc.cgi b/xmlrpc.cgi index 7682b20f54..924610a0b2 100755 --- a/xmlrpc.cgi +++ b/xmlrpc.cgi @@ -21,6 +21,7 @@ use lib qw(.); use Bugzilla; use Bugzilla::Constants; use Bugzilla::Hook; +use Bugzilla::WebService::Constants; # Use an eval here so that runtests.pl accepts this script even if SOAP-Lite # is not installed. @@ -29,6 +30,10 @@ eval 'use XMLRPC::Transport::HTTP; $@ && ThrowCodeError('soap_not_installed'); Bugzilla->usage_mode(Bugzilla::Constants::USAGE_MODE_WEBSERVICE); +local $SOAP::Constants::FAULT_SERVER = ERROR_UNKNOWN_FATAL; +# The line above is used, this one is ignored, but SOAP::Lite +# might start using this constant (the correct one) for XML-RPC someday. +local $XMLRPC::Constants::FAULT_SERVER = ERROR_UNKNOWN_FATAL; my %hook_dispatch; Bugzilla::Hook::process('webservice', { dispatch => \%hook_dispatch }); -- 2.47.2