Attribute filtering should be based on all objects instead of only first

Bug #1829414 reported by Tom Stappaerts on 2019-05-16
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Medium
Tom Stappaerts

Bug Description

When returning a resource from neutron the resouce attribute are filtered based on the current policy and the attributes defined in the resource definition.

Currently on the first object in a list of objects to be returned is checked, if it happens that there are other objects in the list that have additional attributes, those are not checked at all.

I believe all attributes should be checked. Since this originally changed from checking all to only checking the first in a "efficiency of api" commit, I will propose a patchset that has minimal impact while still fixing the issue; please provide feedback here or on gerrit.

Changed in neutron:
assignee: nobody → Tom Stappaerts (tstappae)

Fix proposed to branch: master
Review: https://review.opendev.org/659617

Changed in neutron:
status: New → In Progress
Changed in neutron:
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers