TypeError on passwordCredentials when username is None

Bug #1272350 reported by Ionuț Arțăriși
22
This bug affects 5 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
In Progress
Low
Ionuț Arțăriși

Bug Description

2014-01-24 15:03:36.142 6300 ERROR keystone.common.wsgi [-] object of type 'None
Type' has no len()
2014-01-24 15:03:36.142 6300 TRACE keystone.common.wsgi Traceback (most recent c
all last):
2014-01-24 15:03:36.142 6300 TRACE keystone.common.wsgi File "/usr/lib64/pytho
n2.6/site-packages/keystone/common/wsgi.py", line 238, in __call__
2014-01-24 15:03:36.142 6300 TRACE keystone.common.wsgi result = method(cont
ext, **params)
2014-01-24 15:03:36.142 6300 TRACE keystone.common.wsgi File "/usr/lib64/pytho
n2.6/site-packages/keystone/token/controllers.py", line 94, in authenticate
2014-01-24 15:03:36.142 6300 TRACE keystone.common.wsgi context, auth)
2014-01-24 15:03:36.142 6300 TRACE keystone.common.wsgi File "/usr/lib64/pytho
n2.6/site-packages/keystone/token/controllers.py", line 250, in _authenticate_lo
cal
2014-01-24 15:03:36.142 6300 TRACE keystone.common.wsgi if len(username) > C
ONF.max_param_size:
2014-01-24 15:03:36.142 6300 TRACE keystone.common.wsgi TypeError: object of typ
e 'NoneType' has no len()
2014-01-24 15:03:36.142 6300 TRACE keystone.common.wsgi
2014-01-24 15:03:36.394 6300 ERROR keystone.common.wsgi [-] object of type 'None
Type' has no len()
2014-01-24 15:03:36.394 6300 TRACE keystone.common.wsgi Traceback (most recent c
all last):
2014-01-24 15:03:36.394 6300 TRACE keystone.common.wsgi File "/usr/lib64/pytho
n2.6/site-packages/keystone/common/wsgi.py", line 238, in __call__
2014-01-24 15:03:36.394 6300 TRACE keystone.common.wsgi result = method(cont
ext, **params)
2014-01-24 15:03:36.394 6300 TRACE keystone.common.wsgi File "/usr/lib64/pytho
n2.6/site-packages/keystone/token/controllers.py", line 94, in authenticate
2014-01-24 15:03:36.394 6300 TRACE keystone.common.wsgi context, auth)
2014-01-24 15:03:36.394 6300 TRACE keystone.common.wsgi File "/usr/lib64/pytho
n2.6/site-packages/keystone/token/controllers.py", line 250, in _authenticate_lo
cal
2014-01-24 15:03:36.394 6300 TRACE keystone.common.wsgi if len(username) > C
ONF.max_param_size:
2014-01-24 15:03:36.394 6300 TRACE keystone.common.wsgi TypeError: object of typ
e 'NoneType' has no len()
2014-01-24 15:03:36.394 6300 TRACE keystone.common.wsgi

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

Fix proposed to branch: master
Review: https://review.openstack.org/68923

Changed in keystone:
assignee: nobody → Ionuț Arțăriși (mapleoin)
status: New → In Progress
tags: added: havana-backport-potential
Revision history for this message
Dolph Mathews (dolph) wrote :

Why would username be passed in as None? That should just be a 400, no?

Dolph Mathews (dolph)
Changed in keystone:
importance: Undecided → Low
Revision history for this message
Paul Belanger (pabelanger) wrote :

Odd, I just started hitting this bug too.

Revision history for this message
Paul Belanger (pabelanger) wrote :

Okay, mine is a configuration issue, but the default is auth_user=<None>, so maybe a 400 and better descriptive error would be better.

Revision history for this message
Paul Belanger (pabelanger) wrote :

s/auth_user/admin_user/

tags: removed: havana-backport-potential
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.