Project

General

Profile

Actions

Bug #5702

closed

(Roles Branch) v2 Content Views Controller index call ignoring environment id

Added by Partha Aji over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
-
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

The index call in https://github.com/Katello/katello/blob/roles/app/controllers/katello/api/v2/content_views_controller.rb#L35 ignores the environment_id parameter when returning the results of the query. This causes New Activation Keys page to break because the "Content Views" section lists all the content views in Library even if the user selected a non library environment.

Try this rest call in postman to debug ..
http://<fqdn>/katello/api/v2/content_views?environment_id=<env_id>&full_result=true&organization_id=ACME_Corporation
Basically the result of this call should only return the content views in the selected environment -> <env_id>


Related issues 1 (0 open1 closed)

Blocks Katello - Feature #5217: As a user, I should have CRUD permissions for all entities that are exposed to me.Closed04/16/2014Actions
Actions

Also available in: Atom PDF