]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 446327 รข\80\93 WebService faultCode is a string when a script "die"s
authormkanat%bugzilla.org <>
Mon, 25 Aug 2008 20:43:02 +0000 (20:43 +0000)
committermkanat%bugzilla.org <>
Mon, 25 Aug 2008 20:43:02 +0000 (20:43 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat

xmlrpc.cgi

index 7682b20f547f60cf685774ac96001879819da5a3..924610a0b251465c4c38b2867146b4c4e2c7ad2e 100755 (executable)
@@ -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 });