Activity log for bug #1424745

Date Who What changed Old value New value Message
2015-02-23 17:25:58 Samuel de Medeiros Queiroz bug added bug
2015-02-23 17:26:10 Samuel de Medeiros Queiroz keystone: assignee Samuel de Medeiros Queiroz (samueldmq)
2015-02-24 11:08:47 Boris Bobrov keystone: status New In Progress
2015-03-05 12:43:34 Samuel de Medeiros Queiroz description When iterating over the list of filters to honor them [1], the method remove elements from that list at the same time [2]. 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://github.com/openstack/keystone/blob/master/keystone/common/sql/core.py#L319-L325 [2] https://github.com/openstack/keystone/blob/master/keystone/common/sql/core.py#L314 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://github.com/openstack/keystone/blob/master/keystone/common/sql/core.py#L319-L325 [2] https://github.com/openstack/keystone/blob/master/keystone/common/ldap/core.py#L1750-L1755 [3] https://github.com/openstack/keystone/blob/master/keystone/common/sql/core.py#L314 [4] https://github.com/openstack/keystone/blob/master/keystone/common/ldap/core.py#L1742
2015-03-05 12:43:46 Samuel de Medeiros Queiroz 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()
2015-03-05 18:49:06 David Stanek keystone: importance Undecided Medium
2015-03-06 20:14:39 OpenStack Infra keystone: status In Progress Fix Committed
2015-03-19 14:20:37 Thierry Carrez keystone: status Fix Committed Fix Released
2015-03-19 14:20:37 Thierry Carrez keystone: milestone kilo-3
2015-04-30 08:05:23 Thierry Carrez keystone: milestone kilo-3 2015.1.0