TypeError: object of type 'NoneType' has no len()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Expired
|
Undecided
|
Unassigned |
Bug Description
2014-07-09 17:31:21.408 31964 ERROR keystone.
2014-07-09 17:31:21.408 31964 TRACE keystone.
2014-07-09 17:31:21.408 31964 TRACE keystone.
2014-07-09 17:31:21.408 31964 TRACE keystone.
2014-07-09 17:31:21.408 31964 TRACE keystone.
2014-07-09 17:31:21.408 31964 TRACE keystone.
2014-07-09 17:31:21.408 31964 TRACE keystone.
2014-07-09 17:31:21.408 31964 TRACE keystone.
2014-07-09 17:31:21.408 31964 TRACE keystone.
2014-07-09 17:31:21.408 31964 TRACE keystone.
2014-07-09 17:31:21.408 31964 TRACE keystone.
2014-07-09 17:31:21.408 31964 TRACE keystone.
2014-07-09 17:31:21.408 31964 TRACE keystone.
2014-07-09 17:31:21.408 31964 TRACE keystone.
2014-07-09 17:31:21.408 31964 TRACE keystone.
2014-07-09 17:31:21.408 31964 TRACE keystone.
2014-07-09 17:31:21.408 31964 TRACE keystone.
2014-07-09 17:31:21.408 31964 TRACE keystone.
2014-07-09 17:31:21.408 31964 TRACE keystone.
2014-07-09 17:31:21.408 31964 TRACE keystone.
2014-07-09 17:31:21.408 31964 TRACE keystone.
2014-07-09 17:31:21.408 31964 TRACE keystone.
ident = util.to_list(ident) full_mapper_ zero("get" )
mapper = self._only_
if len(ident) != len(mapper. primary_ key): InvalidRequestE rror(
"Incorrect number of values in identifier to formulate "
"primary key for query.get(); primary key columns are %s" %
', '.join( "'%s'" % c for c in mapper. primary_ key))
raise sa_exc.
I think lines should be added to check if ident and mapper.primary_key are none type.