From: David Lawrence Date: Fri, 23 Jan 2015 17:13:32 +0000 (+0000) Subject: Bug 1124716: regression caused by bug 1090275 to whitelist webservice methods causes... X-Git-Tag: bugzilla-4.4-stable~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6d5669f771a49a7c791f8e61642d1c80ca1631c9;p=thirdparty%2Fbugzilla.git Bug 1124716: regression caused by bug 1090275 to whitelist webservice methods causes test failures with t/012throwables.t r=dylan,a=glob --- diff --git a/Bugzilla/WebService/Server/JSONRPC.pm b/Bugzilla/WebService/Server/JSONRPC.pm index aba5d310b8..0a0afd4008 100644 --- a/Bugzilla/WebService/Server/JSONRPC.pm +++ b/Bugzilla/WebService/Server/JSONRPC.pm @@ -381,7 +381,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.