Bug 751874

Summary: Repositories index call returns repos across all orgs
Product: Red Hat Satellite Reporter: Partha Aji <paji>
Component: katello-agentAssignee: Tomas Strachota <tstrachota>
Status: CLOSED CURRENTRELEASE QA Contact: Garik Khachikyan <gkhachik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: gkhachik, mkoci
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: katello-0.1.175-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:04:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 747354    

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.