The token in request header may contain url char, such as '+',
if quote it, '+' will change to '%2B' which will lead to 401 error.
Our CI doesn't notice this bug because Keystone use fernet token
which doesn't contain url char by default. But token format in
keystone is plugable, some out-tree token formats may contain
url char (for example, PKI/PKIZ token).
So we should skip quote token to avoiding information changing.
Reviewed: https:/ /review. openstack. org/583468 /git.openstack. org/cgit/ openstack/ python- glanceclient/ commit/ ?id=818362147d0 622752d051bd78a e839497a602e44
Committed: https:/
Submitter: Zuul
Branch: master
commit 818362147d06227 52d051bd78ae839 497a602e44
Author: wangxiyuan <email address hidden>
Date: Wed Jul 18 11:30:10 2018 +0800
Do not quote '+' for token header
The token in request header may contain url char, such as '+',
if quote it, '+' will change to '%2B' which will lead to 401 error.
Our CI doesn't notice this bug because Keystone use fernet token
which doesn't contain url char by default. But token format in
keystone is plugable, some out-tree token formats may contain
url char (for example, PKI/PKIZ token).
So we should skip quote token to avoiding information changing.
Closes-bug: #1783290 581e46ccf8a80ed a5d637f17d1
Change-Id: I5aa71b3e2b9b19