[VNC API] Filter list with a wrong attribute name should be ignore

Bug #1657533 reported by Édouard Thuleau
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
Trunk
Fix Committed
Medium
Unassigned
OpenContrail
New
Undecided
Unassigned

Bug Description

When we list resource with filter pointed to an unknown attribute name, the returned list is empty:

$ curl -s http://contrail2:8082/virtual-networks?filters=foo==bar | jq .
{
  "virtual-networks": []
}

It should list all resources, none of them should be filtered.

Tags: config
Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/27956
Submitter: ?douard Thuleau (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/27956
Committed: http://github.org/Juniper/contrail-controller/commit/1378173cb21eb382cfbcaebf927012ae94de5c63
Submitter: Zuul (<email address hidden>)
Branch: master

commit 1378173cb21eb382cfbcaebf927012ae94de5c63
Author: Édouard Thuleau <email address hidden>
Date: Wed Jan 18 19:28:37 2017 +0100

[VNC API Server] API list resource ignores unknown filters

If a resource type is listed with unknown filter(s), we should not take
care of that filter(s).

Change-Id: I1a98c03a178f80da89a72550bd1f553c622be010
Closes-Bug: #1657533

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.