diff options
author | David Lawrence <dkl@mozilla.com> | 2014-11-12 16:38:10 +0000 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2014-11-12 16:39:00 +0000 |
commit | 0b19b103cbd85e804495b6b48c05464da1568daf (patch) | |
tree | 93d64d9b6209d7c7d8d3e525c93dd300cded5fae /Bugzilla/WebService/Server/XMLRPC.pm | |
parent | 4b4ddaf2bc4868e009a544e59e184a958f6a2fcc (diff) | |
download | bugs-0b19b103cbd85e804495b6b48c05464da1568daf.tar bugs-0b19b103cbd85e804495b6b48c05464da1568daf.tar.gz bugs-0b19b103cbd85e804495b6b48c05464da1568daf.tar.bz2 bugs-0b19b103cbd85e804495b6b48c05464da1568daf.tar.xz bugs-0b19b103cbd85e804495b6b48c05464da1568daf.zip |
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.pm | 7 |
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; } |