diff options
author | David Lawrence <dkl@mozilla.com> | 2014-05-12 14:36:59 +0000 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2014-05-12 14:36:59 +0000 |
commit | 70e8ab711072845b5a39394268e70a88729e9d9a (patch) | |
tree | b4df8c8d36bb350d709ac97ec2108a3164c366dd /Bugzilla/WebService/Server/XMLRPC.pm | |
parent | 8243604780d562f47af41b9e9b2f78b00d29f424 (diff) | |
download | bugs-70e8ab711072845b5a39394268e70a88729e9d9a.tar bugs-70e8ab711072845b5a39394268e70a88729e9d9a.tar.gz bugs-70e8ab711072845b5a39394268e70a88729e9d9a.tar.bz2 bugs-70e8ab711072845b5a39394268e70a88729e9d9a.tar.xz bugs-70e8ab711072845b5a39394268e70a88729e9d9a.zip |
Bug 1001462 - Bug.search causes error when using simple token auth and specifying 'token' instead of 'Bugzilla_token'
r/a=glob
Diffstat (limited to 'Bugzilla/WebService/Server/XMLRPC.pm')
-rw-r--r-- | Bugzilla/WebService/Server/XMLRPC.pm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Bugzilla/WebService/Server/XMLRPC.pm b/Bugzilla/WebService/Server/XMLRPC.pm index 40c66a8f9..48ab27a5e 100644 --- a/Bugzilla/WebService/Server/XMLRPC.pm +++ b/Bugzilla/WebService/Server/XMLRPC.pm @@ -115,6 +115,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 { @@ -138,6 +139,11 @@ 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; } |