diff options
author | David Lawrence <dkl@mozilla.com> | 2015-01-23 16:52:04 +0000 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2015-01-23 16:52:04 +0000 |
commit | cce03852929c379f0ae10aa07b8bf0ef994e1876 (patch) | |
tree | 6a9fdd9f8fa388ebae98b1a828f0c59a2d887d54 /Bugzilla/WebService/Server | |
parent | ce8c9cacfb5e9e6615c7c2f69a1cddd4fd62b73f (diff) | |
download | bugs-cce03852929c379f0ae10aa07b8bf0ef994e1876.tar bugs-cce03852929c379f0ae10aa07b8bf0ef994e1876.tar.gz bugs-cce03852929c379f0ae10aa07b8bf0ef994e1876.tar.bz2 bugs-cce03852929c379f0ae10aa07b8bf0ef994e1876.tar.xz bugs-cce03852929c379f0ae10aa07b8bf0ef994e1876.zip |
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.pm | 2 |
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. |