Hints with values of None seem to be broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Medium
|
NITIN GUPTA |
Bug Description
The Hints object allows developers to construct filters to query the backend for specific entries. For example, I can ask the backend to give me a list of entities that match a specific criteria:
hints = driver_
hints.add_
credentials = self.credential
The above example should give me all credentials that have a key_hash column matching the value of primary_key_hash. If I try to apply this same pattern using None as the value to match, I get an error:
http://
It seems that Hints doesn't allow you to filter a backend by "return to me all things that have this attribute set to NULL", even though we expect this to work in our code [0].
Changed in keystone: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in keystone: | |
assignee: | nobody → Abhishek Kumar Tiwary (aktiwary) |
Changed in keystone: | |
assignee: | Abhishek Kumar Tiwary (aktiwary) → NITIN GUPTA (nitin9-gupta) |
Changed in keystone: | |
status: | Confirmed → In Progress |
Changed in keystone: | |
milestone: | none → ocata-1 |
I attempted to patch Hints using something like:
http:// cdn.pasteraw. com/ftlwrezifkp zaira0xgevf0nsh x1c9a
But no luck