<div dir="ltr">Too late. That's a backwards incompatible change that can mess with clients putting on cache busting nonce tokens and who knows what else.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 28, 2016 at 3:49 AM, Korzeniewski, Artur <span dir="ltr"><<a href="mailto:artur.korzeniewski@intel.com" target="_blank">artur.korzeniewski@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div>
<p class="MsoNormal">Hi all,<u></u><u></u></p>
<p class="MsoNormal">During integration of Subnet OVO into db code get_subnet/update_subnet/delete [1], I have found and issue in API behavior and strict object implementation for NeutronDbObject base class.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The issue is that on REST API level, you can pass random filters and it will not affect the result set.<u></u><u></u></p>
<p class="MsoNormal">But in object implementation, we are checking if filters passed to get_objects is valid field declared in object. If it does not exists, we error out [2]:<u></u><u></u></p>
<p class="MsoNormal">"Invalid input for operation: 'admin_state_up' is not supported for filtering."<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">So the question is: should we return error from object to API level that filter passed in GET request is invalid?<u></u><u></u></p>
<p class="MsoNormal">In my opinion we should not allow random strings to be passed as filters…<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Regards,<u></u><u></u></p>
<p class="MsoNormal">Artur Korzeniewski<u></u><u></u></p>
<p class="MsoNormal">IRC: korzen<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[1] <a href="https://review.openstack.org/#/c/321001" target="_blank">https://review.openstack.org/#/c/321001</a><u></u><u></u></p>
<p class="MsoNormal">[2] <a href="http://logs.openstack.org/01/321001/11/check/gate-neutron-dsvm-api/98d056e/console.html#_2016-07-27_14_47_10_906641" target="_blank">http://logs.openstack.org/01/321001/11/check/gate-neutron-dsvm-api/98d056e/console.html#_2016-07-27_14_47_10_906641</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div>