← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1319997] [NEW] object of type 'NoneType' has no len when tokens expire

 

Public bug reported:

When an expired UUID token is used the following is logged in
keystone.log:

       2014-05-15 07:08:01.040 31086 ERROR keystone.common.wsgi [-] object of type 'NoneType' has no len()
2014-05-15 07:08:01.040 31086 TRACE keystone.common.wsgi Traceback (most recent call last):
2014-05-15 07:08:01.040 31086 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/common/wsgi.py", line 207, in __call__
2014-05-15 07:08:01.040 31086 TRACE keystone.common.wsgi     result = method(context, **params)
2014-05-15 07:08:01.040 31086 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/token/controllers.py", line 98, in authenticate
2014-05-15 07:08:01.040 31086 TRACE keystone.common.wsgi     context, auth)
2014-05-15 07:08:01.040 31086 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/token/controllers.py", line 256, in _authenticate_local
2014-05-15 07:08:01.040 31086 TRACE keystone.common.wsgi     if len(username) > CONF.max_param_size:
2014-05-15 07:08:01.040 31086 TRACE keystone.common.wsgi TypeError: object of type 'NoneType' has no len()

This is fairly noisy for a normal situation.

** Affects: keystone
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1319997

Title:
  object of type 'NoneType' has no len when tokens expire

Status in OpenStack Identity (Keystone):
  New

Bug description:
  When an expired UUID token is used the following is logged in
  keystone.log:

         2014-05-15 07:08:01.040 31086 ERROR keystone.common.wsgi [-] object of type 'NoneType' has no len()
  2014-05-15 07:08:01.040 31086 TRACE keystone.common.wsgi Traceback (most recent call last):
  2014-05-15 07:08:01.040 31086 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/common/wsgi.py", line 207, in __call__
  2014-05-15 07:08:01.040 31086 TRACE keystone.common.wsgi     result = method(context, **params)
  2014-05-15 07:08:01.040 31086 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/token/controllers.py", line 98, in authenticate
  2014-05-15 07:08:01.040 31086 TRACE keystone.common.wsgi     context, auth)
  2014-05-15 07:08:01.040 31086 TRACE keystone.common.wsgi   File "/opt/stack/venvs/keystone/local/lib/python2.7/site-packages/keystone/token/controllers.py", line 256, in _authenticate_local
  2014-05-15 07:08:01.040 31086 TRACE keystone.common.wsgi     if len(username) > CONF.max_param_size:
  2014-05-15 07:08:01.040 31086 TRACE keystone.common.wsgi TypeError: object of type 'NoneType' has no len()

  This is fairly noisy for a normal situation.

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1319997/+subscriptions


Follow ups

References