1. What is the problem
When we use admin role for demo project to retrieve jobs/routings
through Admin API, return results include admin project's
jobs/routings. The result should be only related to demo project.
2. What is the solution for the problem
Extract project ID from context and use it as filter. The project
ID filter in URL query string will be ignored, and only the project ID
in which the user is authorized will be used as the filter.
3. What the features need to be implemented to the Tricircle to
realize the solution
Choose project ID as mandatory filter for jobs/routings list operation.
Reviewed: https:/ /review. openstack. org/494057 /git.openstack. org/cgit/ openstack/ tricircle/ commit/ ?id=9939540c070 423906ebd8aba00 70713b845f868c
Committed: https:/
Submitter: Jenkins
Branch: master
commit 9939540c0704239 06ebd8aba007071 3b845f868c
Author: Dongfeng Huang <email address hidden>
Date: Wed Aug 16 10:26:24 2017 +0800
Fix bugs in tricircle Admin API
1. What is the problem
When we use admin role for demo project to retrieve jobs/routings
through Admin API, return results include admin project's
jobs/routings. The result should be only related to demo project.
2. What is the solution for the problem
Extract project ID from context and use it as filter. The project
ID filter in URL query string will be ignored, and only the project ID
in which the user is authorized will be used as the filter.
3. What the features need to be implemented to the Tricircle to
realize the solution
Choose project ID as mandatory filter for jobs/routings list operation.
Change-Id: I86778e0525c1fe cf45bc473bd42e6 2909534778b
Closes-Bug: #1711001
Closes-Bug: #1711003