Actions
Bug #5702
closed(Roles Branch) v2 Content Views Controller index call ignoring environment id
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>
Actions