Skip to content

Commit

Permalink
Keystone middleware doesn't like if token is unicode. It must be conv…
Browse files Browse the repository at this point in the history
…erted

to string before validation.

Change-Id: I537f3ca96229fd9abef18d8ceb56f3fee6fd1296
Fixes-Bug: #1604773
  • Loading branch information
Deepinder Setia committed Jul 20, 2016
1 parent 32db0ff commit 58b7add
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/config/api-server/vnc_cfg_api_server.py
Expand Up @@ -1748,7 +1748,7 @@ def obj_perms_http_get(self):
if 'token' not in get_request().query:
raise cfgm_common.exceptions.HttpError(
400, 'User token needed for validation')
user_token = get_request().query.token
user_token = get_request().query.token.encode("ascii")

# get permissions in internal context
try:
Expand Down

0 comments on commit 58b7add

Please sign in to comment.