summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-08-25 22:40:05 +0200
committermkanat%bugzilla.org <>2008-08-25 22:40:05 +0200
commitccdebf7764d3c279f6dc4de5821987f1d1e09ee4 (patch)
treee3eec634deaee016164914e384986d594ae4e190
parentd8b02aff4ed586f38a56caaafcb0374edc16d519 (diff)
downloadbugzilla-ccdebf7764d3c279f6dc4de5821987f1d1e09ee4.tar.gz
bugzilla-ccdebf7764d3c279f6dc4de5821987f1d1e09ee4.tar.xz
Bug 446327: WebService faultCode is a string when a script "die"s
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=dkl, a=mkanat
-rwxr-xr-xxmlrpc.cgi5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmlrpc.cgi b/xmlrpc.cgi
index 324382ea2..f2b0ef4d1 100755
--- a/xmlrpc.cgi
+++ b/xmlrpc.cgi
@@ -22,6 +22,7 @@ use Bugzilla;
use Bugzilla::Constants;
use Bugzilla::Error;
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.
@@ -30,6 +31,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 });