]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1142399: invalid xmlrpc requests warns: Use of uninitialized value $file in subst...
authorByron Jones <glob@mozilla.com>
Tue, 17 Mar 2015 03:54:20 +0000 (11:54 +0800)
committerByron Jones <glob@mozilla.com>
Tue, 17 Mar 2015 03:54:20 +0000 (11:54 +0800)
r=dkl,a=glob

Bugzilla/WebService/Server/XMLRPC.pm

index a49ac2033945435e0870e419efd8f5199bd70489..f3d95ef3daa40bd3ab3d5036bd43058c563b9e36 100644 (file)
@@ -98,6 +98,9 @@ sub make_response {
 sub handle_login {
     my ($self, $classes, $action, $uri, $method) = @_;
     my $class = $classes->{$uri};
+    if (!$class) {
+        ThrowCodeError('unknown_method', { method => $method eq 'methodName' ? '' : '.' . $method });
+    }
     my $full_method = $uri . "." . $method;
     # Only allowed methods to be used from the module's whitelist
     my $file = $class;