admin user query share networks with both security_service_id and project_id in search_opts will get wrong result
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Shared File Systems Service (Manila) |
Fix Released
|
Medium
|
haixin |
Bug Description
Description
===========
1: when get share networks list, if specified "security_
function share_network_
this will lead to Non-admin user get share networks in other project.
2: we can put "created_since", "created_before" search opts into database to Increase query speed
3: we can integrate the database query interface
Steps to reproduce
==================
A chronological list of steps which will help reproduce the issue you hit:
* in project A(id=A_id) create an share network net_A, which security_service_id is id1 belong to project A.
* in project B(id=B_id) create an share network net_B, which security_service_id is id2 belong to project B.
* then admin to query share networks list with security_
search opts.
Expected result
===============
the query resule is None
Actual result
=============
you will get net_A
Changed in manila: | |
assignee: | nobody → haixin (haixin77) |
description: | updated |
Changed in manila: | |
importance: | Undecided → Medium |
milestone: | none → xena-1 |
Changed in manila: | |
status: | New → In Progress |
Changed in manila: | |
milestone: | xena-1 → xena-2 |
Changed in manila: | |
milestone: | xena-2 → xena-rc1 |
Additional comments http:// eavesdrop. openstack. org/meetings/ manila/ 2021/manila. 2021-04- 08-15.00. log.html