summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/Server/XMLRPC.pm
diff options
context:
space:
mode:
authorDavid Lawrence <dkl@mozilla.com>2014-11-12 17:38:10 +0100
committerDavid Lawrence <dkl@mozilla.com>2014-11-12 17:38:10 +0100
commitc0156f20dfd3f5bfa3a0e1c2b6ca0f2de34797a4 (patch)
tree7b63716e937d2a746a5e5c85ab49a56cb137eb28 /Bugzilla/WebService/Server/XMLRPC.pm
parentded5d29a6083d08350ddf78d05266872cc2e9bb7 (diff)
downloadbugzilla-c0156f20dfd3f5bfa3a0e1c2b6ca0f2de34797a4.tar.gz
bugzilla-c0156f20dfd3f5bfa3a0e1c2b6ca0f2de34797a4.tar.xz
Bug 1001462: Bug.search causes error when using simple token auth and specifying 'token' instead of 'Bugzilla_token'
r=glob,a=glob
Diffstat (limited to 'Bugzilla/WebService/Server/XMLRPC.pm')
-rw-r--r--Bugzilla/WebService/Server/XMLRPC.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Server/XMLRPC.pm b/Bugzilla/WebService/Server/XMLRPC.pm
index 8f9070ae7..56b31ffef 100644
--- a/Bugzilla/WebService/Server/XMLRPC.pm
+++ b/Bugzilla/WebService/Server/XMLRPC.pm
@@ -117,6 +117,7 @@ our @ISA = qw(XMLRPC::Deserializer);
use Bugzilla::Error;
use Bugzilla::WebService::Constants qw(XMLRPC_CONTENT_TYPE_WHITELIST);
+use Bugzilla::WebService::Util qw(fix_credentials);
use Scalar::Util qw(tainted);
sub deserialize {
@@ -140,7 +141,13 @@ sub deserialize {
my $params = $som->paramsin;
# This allows positional parameters for Testopia.
$params = {} if ref $params ne 'HASH';
+
+ # Update the params to allow for several convenience key/values
+ # use for authentication
+ fix_credentials($params);
+
Bugzilla->input_params($params);
+
return $som;
}