Bug 557552

Summary: Available repos do not appear when re-creating an RHN Hosted Source content provider
Product: [Other] RHQ Project Reporter: John Sefler <jsefler>
Component: ContentAssignee: Jay Dobies <jason.dobies>
Status: CLOSED WORKSFORME QA Contact:
Severity: high Docs Contact:
Priority: medium    
Version: 1.4CC: cwelton, jason.dobies, whayutin
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-03-19 17:06:02 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: 565635    

Description John Sefler 2010-01-21 19:28:42 UTC
Description of problem:
Repositories do not appear in the GUI upon re-creating the content provider


Version-Release number of selected component (if applicable):
master and content branch

How reproducible:


Steps to Reproduce:
1. create an RHN Hosted Source content provider
2. Sync it
3. Verify its list of provided repos appear
4. Delete it
5. create a new RHN Hosted Source content provider (using same new name or a different name)
6. Sync it
BANG!  Its repos never populate in the GUI even though the logs appear to be fetching the repo names.

Comment 1 Jay Dobies 2010-02-09 17:36:17 UTC
Commit    1c1c31a90b52e5a9f490733cd46a180a8df6b15e

ContentSourceManagerBean.java
RepoManagerBean.java
RepoManagerBeanTest.java

Need to delete orphaned candidate repos before removing their association to the content source, otherwise the delete call doesn't find any candidates to delete. Removed some redundant deletes given the cascade settings of ContentSource.

Comment 2 Corey Welton 2010-03-19 17:06:02 UTC
QA Closing this bug - essentially untestable at this point.