SQL/LDAP are not able to honor multiple filters in driver_hints.Hints()
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Medium
|
Samuel de Medeiros Queiroz |
Bug Description
When iterating over the list of filters to honor them [1] [2], the method remove elements from that list at the same time [3] [4].
This way, not all filters are honored since the internal idx used by python is not aware of the removal while iterating. The following example code exposes this behavior:
a=[1,2]
for b in a:
print b
a.remove(b)
It prints 1 and the list ends with element 2.
[1] https:/
[2] https:/
[3] https:/
[4] https:/
Changed in keystone: | |
assignee: | nobody → Samuel de Medeiros Queiroz (samueldmq) |
Changed in keystone: | |
status: | New → In Progress |
description: | updated |
summary: |
- SQL is not able to honor multiple filters in driver_hints.Hints() + SQL/LDAP are not able to honor multiple filters in driver_hints.Hints() |
Changed in keystone: | |
importance: | Undecided → Medium |
Changed in keystone: | |
milestone: | none → kilo-3 |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | kilo-3 → 2015.1.0 |
Related fix proposed to branch: master /review. openstack. org/158412
Review: https:/