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.