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.
Bug 751874 - Repositories index call returns repos across all orgs
Summary: Repositories index call returns repos across all orgs
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: katello-agent
Version: 6.0.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: Unspecified
Assignee: Tomas Strachota
QA Contact: Garik Khachikyan
URL:
Whiteboard:
Depends On:
Blocks: katello-blockers
TreeView+ depends on / blocked
 
Reported: 2011-11-07 21:17 UTC by Partha Aji
Modified: 2019-09-25 21:07 UTC (History)
2 users (show)

Fixed In Version: katello-0.1.175-1
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-22 18:04:54 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Partha Aji 2011-11-07 21:17:36 UTC
curl -k -s -u admin:admin -H 'Content-Type: application/json' -H 'Accept: application/json' http://localhost:3000/katello/api/repositories/|json_reformat

returns all the repositories including ones that can't be accessed by the user or don't belong to katello. 
Ideally we would like to not have this URL available and instead force the user to do something like http://localhost:3000/katello//api/organizations/ACME_Corporation/environments/1/repositories or
http://localhost:3000/katello//api/organizations/ACME_Corporation/repositories 
so that the repos are filtered by org.

If we HAVE to allow http://localhost:3000/katello/api/repositories/ then make sure that the repos are accessible by the user (now that the repo model is in the database this should be easier to implement)

Comment 1 Tomas Strachota 2012-01-11 16:33:39 UTC
This route wasn't used anywhere so I removed it. It also doesn't make much sense to to list all repos independently of organizations. 

The route is gone in katello-0.1.175-1.


Note You need to log in before you can comment on or make changes to this bug.