Unexpected error when unscoped token is None
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
django-openstack-auth |
Fix Released
|
Medium
|
Brad Pokorny |
Bug Description
When using PKI, there are certain cases the user.Token constructor is called with the default __init__ value of None. The _is_pki_token passes None for the token on to the Keystone client, and an unexpected error occurs:
File "/home/
if self._is_
File "/home/
return (keystone_
File "/home/
return f(*args, **kwargs)
File "/home/
return is_asn1_
File "/home/
return token[:3] == PKI_ASN1_PREFIX
TypeError: 'NoneType' object has no attribute '__getitem__'
If the token is None, we know it's not pki and should not make an extra call to the Keystone client to check.
Changed in django-openstack-auth: | |
assignee: | nobody → Brad Pokorny (bpokorny) |
description: | updated |
Changed in django-openstack-auth: | |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. openstack. org/286860
Review: https:/