When use incorrect filter for os port list neutron returns the list of all ports
Bug #2059902 reported by
Valentina Pytlik
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
New
|
Undecided
|
Unassigned |
Bug Description
I have several ports in my openstack account
I want to get list ports with specific option and specify filter.
here is an example:
curl -X GET "https:/
However, when I specify incorrect filter to API it returns all available ports.
example below:
curl-X GET "https:/
It looks dangerous, because I could make a mistake in filter on set or delete commands and as result this changes be applied to all available ports.
I suppose, that correct behaviour should be: return nothing or fail with an error. what do you think about it?
tags: | added: api-ref |
tags: |
added: api removed: api-ref |
To post a comment you must log in.
So the neutron API has been behaving this way forever - if the filter key given is not in the object definition it is ignored - see neutron_ lib/db/ model_query. py:apply_ filters( ) for reference.
Any change to this behavior would have to be opt-in to not break backwards compatibility, so via an extension that is not enabled by default. This is just a thought.
What do other services do? For example, Nova?