← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1749304] Re: RFE: Support filter by attribute with empty value

 

Reviewed:  https://review.openstack.org/545490
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=a732bbf19e31f6bab8d1ffd2540f6e367caab4c8
Submitter: Zuul
Branch:    master

commit a732bbf19e31f6bab8d1ffd2540f6e367caab4c8
Author: Hongbin Lu <hongbin.lu@xxxxxxxxxx>
Date:   Fri Feb 16 23:34:54 2018 +0000

    Support filter attribute with empty string
    
    This will enable users to filter list of results with attributes
    with empty value. For example, the request below will list
    all unbound ports (unbound ports have blank device_id).
    
      GET "/ports?device_id="
    
    APIImpact
    Change-Id: I9001214de126eb888c2425b6a6275f59ec8478e7
    Closes-Bug: #1749304


** 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/1749304

Title:
  RFE: Support filter by attribute with empty value

Status in neutron:
  Fix Released

Bug description:
  Right now, it seems it is impossible to list resources with a filter
  that contains blank value (""). For example, it is impossible to list
  unbound ports (whose device_id is ""). I tried the following, but it
  doesn't seem to work (it returned all ports instead of the filtered
  ports).

    GET "/ports?device_id="

  NOTE: There is a reported case that a user wanted to filter and delete
  the relevant resources. However, the user entered an empty value by
  mistake and wrongly deleted all the resources. The incident is due to
  this RFE so fixing it is critical.

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1749304/+subscriptions


References