yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #46866
[Bug 1537924] Re: Pecan: filter values are not converted
Reviewed: https://review.openstack.org/272311
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=f392a04051ac45dc023a594d605420ef30a19a2e
Submitter: Jenkins
Branch: master
commit f392a04051ac45dc023a594d605420ef30a19a2e
Author: Salvatore Orlando <salv.orlando@xxxxxxxxx>
Date: Mon Jan 25 14:23:13 2016 -0800
Pecan: filter items need type conversion
In order for filtering to work properly on GET requests, filter
values should be converted to the appropriate type specified in
neutron.api.v2.attributes.RESOURCE_ATTRIBUTE_MAP.
Without this change queries on boolean attributes, for instance,
won't work as the value to filter on will be passed to the plugin
as a string.
Closes Bug: #1537924
Change-Id: I0a697a01f272f94378928ecc099232e3b2d11f1f
** Changed in: neutron
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1537924
Title:
Pecan: filter values are not converted
Status in neutron:
Fix Released
Bug description:
The code [1], in order to work as expected, needs a call like [2].
Otherwise every filter value is sent down to the plugin as a string and the plugin will not like that.
[1] http://git.openstack.org/cgit/openstack/neutron/tree/neutron/pecan_wsgi/controllers/root.py#n159
[2] http://git.openstack.org/cgit/openstack/neutron/tree/neutron/api/api_common.py#n32
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1537924/+subscriptions
References