[bugzilla-gnome-org-upstream/4.4] Bug 1124716: regression caused by bug 1090275 to whitelist webservice methods causes test failures w
- From: Andrea Veri <av src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bugzilla-gnome-org-upstream/4.4] Bug 1124716: regression caused by bug 1090275 to whitelist webservice methods causes test failures w
- Date: Mon, 2 Feb 2015 22:15:44 +0000 (UTC)
commit 6d5669f771a49a7c791f8e61642d1c80ca1631c9
Author: David Lawrence <dkl mozilla com>
Date: Fri Jan 23 17:13:32 2015 +0000
Bug 1124716: regression caused by bug 1090275 to whitelist webservice methods causes test failures with
t/012throwables.t
r=dylan,a=glob
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 aba5d31..0a0afd4 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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]