Impossible to use method search_s in BaseLdap if attribute 'page_size' is not 0.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Medium
|
Sergey Nikitin |
Bug Description
/opt/stack/
def search_s(self, base, scope,
# NOTE(morganfain
# allows us to set mapped attributes to "None" as defaults in config.
# Without this filtering, the ldap query would raise a TypeError since
# attrlist is expected to be an iterable of strings.
if attrlist is not None:
if self.page_size:
else:
if attrlist is None:
else:
return py_result
Variable 'py_result' can be not initialized if self.page_size > 0 because it's initialized only in the 'else' block.
Changed in keystone: | |
assignee: | nobody → Sergey Nikitin (snikitin) |
Changed in keystone: | |
milestone: | none → juno-1 |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | juno-1 → 2014.2 |
Fix proposed to branch: master /review. openstack. org/86325
Review: https:/