Sqlalchemy column in_() operator does not allow NULL element
Bug #1724177 reported by
Lujin Luo
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Lujin Luo |
Bug Description
I met this issue when I was integrating Floating IP OVO objects. There would be a case that we want to pass router_id=None and fixed_port_id=None into get_objects() method [1], which eventually leads to this method [2].
In my case, since when key is "router_id" and value is "[None]", the in_() clause in Line 205 will not return any matching queries, cause in_() does not support None element.
We need to add a check if [2] when None is contained in value.
[1] https:/
[2] https:/
Changed in neutron: | |
assignee: | nobody → Lujin Luo (luo-lujin) |
description: | updated |
Changed in neutron: | |
status: | New → Confirmed |
Changed in neutron: | |
importance: | Undecided → Medium |
tags: | added: db |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/512908
Review: https:/