When configuring a auth_uri without a auth_port auth_token will crash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Undecided
|
Chmouel Boudjnah |
Bug Description
I have for tokenauth :
[filter:tokenauth]
paste.filter_
auth_uri = http://
admin_token = ADMIN
admin_user = admin
admin_password = ADMIN
memcache_hosts = 127.0.0.1:11211
this will crash due of the casting without NULL check of auth_port :
Traceback (most recent call last):
File "/usr/local/
execfile(
File "/shared/
run_
File "/shared/
loadapp(
File "/usr/lib/
return loadobj(APP, uri, name=name, **kw)
File "/usr/lib/
return context.create()
File "/usr/lib/
return self.object_
File "/usr/lib/
app = filter(app)
File "/shared/
return AuthProtocol(app, conf)
File "/shared/
self.auth_port = int(conf.
TypeError: int() argument must be a string or a number, not 'NoneType'
Changed in keystone: | |
assignee: | nobody → Chmouel Boudjnah (chmouel) |
Changed in keystone: | |
status: | New → In Progress |
Changed in keystone: | |
milestone: | none → essex-rc1 |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | essex-rc1 → 2012.1 |
Reviewed: https:/ /review. openstack. org/4805 github. com/openstack/ keystone/ commit/ 94abc7ed3e8105c f80ad60558d01fc 0839adc027
Committed: http://
Submitter: Jenkins
Branch: master
commit 94abc7ed3e8105c f80ad60558d01fc 0839adc027
Author: Chmouel Boudjnah <email address hidden>
Date: Fri Mar 2 11:34:16 2012 +0000
Make sure we have a port number before int it.
- Remove unused auth_location in s3_token along the way.
- Fixes bug 944720.
Change-Id: Ib6e48511d09798 868c5ca3fa00472 525bc9f8823