[VNC API] Cannot filter list with multiple values

Bug #1655996 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
Undecided
Unassigned
OpenContrail
New
Undecided
Unassigned

Bug Description

$ curl -G -v http://contrail:8082/virtual-networks --data-urlencode "filters=display_name==[net1, net2]"
* Trying 1.1.1.1...
* TCP_NODELAY set
* Connected to contrail (192.168.100.4) port 8082 (#0)
> GET /virtual-networks?filters=display_name%3D%3D%5Bnet1%2C%20net2%5D HTTP/1.1
> Host: contrail:8082
> User-Agent: curl/7.52.1
> Accept: */*
>
< HTTP/1.1 400 Bad Request
< Content-Length: 41
< Content-Type: text/html; charset=UTF-8
< Date: Thu, 12 Jan 2017 15:03:15 GMT
<
* Curl_http_done: called premature == 0
* Connection #0 to host contrail left intact
Invalid filter display_name==[net1, net2]

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

Review in progress for https://review.opencontrail.org/27857
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/27857
Committed: http://github.org/Juniper/contrail-controller/commit/adbf269fc676c396abfe383e5832846b11c68a19
Submitter: Zuul (<email address hidden>)
Branch: master

commit adbf269fc676c396abfe383e5832846b11c68a19
Author: Édouard Thuleau <email address hidden>
Date: Thu Jan 12 16:34:49 2017 +0100

[VNC API lib] Permits to set a list of value for filters

VNC API lib permits to filter resource list but it does not correctly
encode url if the filter's value is a list.

Change-Id: I834f1290e0e8763507cf4eb5cdfc2b26edb27253
Closes-bug: #1655996

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.