summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Server
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2015-01-23 17:50:38 +0100
committerDavid Lawrence <dkl@mozilla.com>2015-01-23 17:50:38 +0100
commitb8575ad2d8504d7ea5f317ac1568085f9e75ba8f (patch)
tree05da8445b20d8f22906beeee12be67629588b618 /Bugzilla/WebService/Server
parentbb16842f9a670da25fdebbcbc4dcdc3ee52cd76f (diff)
downloadbugzilla-b8575ad2d8504d7ea5f317ac1568085f9e75ba8f.tar.gz
bugzilla-b8575ad2d8504d7ea5f317ac1568085f9e75ba8f.tar.xz
Bug 1124716: regression caused by bug 1090275 to whitelist webservice methods causes test failures with t/012throwables.t
r=dylan,a=glob
Diffstat (limited to 'Bugzilla/WebService/Server')
-rw-r--r--Bugzilla/WebService/Server/JSONRPC.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/WebService/Server/JSONRPC.pm b/Bugzilla/WebService/Server/JSONRPC.pm
index 0b2995a66..70b8fd96c 100644
--- a/Bugzilla/WebService/Server/JSONRPC.pm
+++ b/Bugzilla/WebService/Server/JSONRPC.pm
@@ -407,7 +407,7 @@ sub _argument_type_check {
# Only allowed methods to be used from our whitelist
if (none { $_ eq $method} $pkg->PUBLIC_METHODS) {
- ThrowUserError('unknown_method', { method => $self->bz_method_name });
+ ThrowCodeError('unknown_method', { method => $self->_bz_method_name });
}
# This is the best time to do login checks.