Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Created attachment 1070386[details]
Output of foreman-debug from a RHEL 7.1 system.
Description of problem:
It's possible to search for puppet modules by issuing GET requests to the following paths:
* /katello/api/puppet_modules
* /katello/api/content_views/:content_view_id/filters/:filter_id/puppet_modules
* /katello/api/content_view_filters/:content_view_filter_id/puppet_modules
* /katello/api/repositories/:repository_id/puppet_modules
The paths imply that it's possible to search for just puppet modules that belong to a certain repository. Unfortunately, this just doesn't work. Satellite ignores the "repository_id" search filter. Satellite just returns all puppet modules instead of those belonging to a particular repository.
Version-Release number of selected component (if applicable):
Tested against Satellite 6.1.2. Foreman-debug attached.
How reproducible:
100%
Steps to Reproduce:
See description.
Actual results:
All puppet modules are returned.
Expected results:
Only puppet modules in a certain repository are returned.
Additional info:
Comment 3Oleksandr Shtaier
2016-05-15 12:29:28 UTC
Get all modules:
https://server/katello/api/puppet_modules
{"total":6,"subtotal":6,"page":1,"per_page":20,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"id":6,"uuid":"72585823-5ba4-44a8-8094-7e59520c81a6","name":"samba","version":"0.2.0","author":"puppet","summary":"A puppet module that manages samba"},{"id":5,"uuid":"5abcc0d7-b1ec-4abc-a4aa-7b7c36c82065","name":"cron","version":"0.0.1","author":"puppet","summary":"Puppet module that manages scheduling of task trough cron"},{"id":4,"uuid":"189cb719-a8f2-4f6e-9e65-9d63d2948896","name":"pureftpd","version":"1.0.2","author":"saz","summary":""},{"id":3,"uuid":"1333e072-6f4f-44bf-bc78-f41640f25300","name":"httpd","version":"0.2.0","author":"5ubZ3r0","summary":"This module handles a standard httpd installation."},{"id":2,"uuid":"c7f26ae2-e87e-490f-a3c0-493977e3bd8e","name":"ntp","version":"3.2.1","author":"puppetlabs","summary":"NTP Module"},{"id":1,"uuid":"cb01f35b-bc55-4ba2-b052-57aba0d22246","name":"apache","version":"1.8.0","author":"puppetlabs","summary":"Installs, configures, and manages Apache virtual hosts, web services, and modules."}]}
Get modules for one repository:
https://server/katello/api/repositories/3/puppet_modules
{"total":1,"subtotal":1,"page":1,"per_page":20,"error":null,"search":null,"sort":{"by":null,"order":null},"results":[{"id":2,"uuid":"c7f26ae2-e87e-490f-a3c0-493977e3bd8e","name":"ntp","version":"3.2.1","author":"puppetlabs","summary":"NTP Module"}]}
Comment 4Oleksandr Shtaier
2016-05-15 12:32:01 UTC
Created attachment 1070386 [details] Output of foreman-debug from a RHEL 7.1 system. Description of problem: It's possible to search for puppet modules by issuing GET requests to the following paths: * /katello/api/puppet_modules * /katello/api/content_views/:content_view_id/filters/:filter_id/puppet_modules * /katello/api/content_view_filters/:content_view_filter_id/puppet_modules * /katello/api/repositories/:repository_id/puppet_modules The paths imply that it's possible to search for just puppet modules that belong to a certain repository. Unfortunately, this just doesn't work. Satellite ignores the "repository_id" search filter. Satellite just returns all puppet modules instead of those belonging to a particular repository. Version-Release number of selected component (if applicable): Tested against Satellite 6.1.2. Foreman-debug attached. How reproducible: 100% Steps to Reproduce: See description. Actual results: All puppet modules are returned. Expected results: Only puppet modules in a certain repository are returned. Additional info: