Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 229370

Summary: Too many initial available software repos
Product: [Eclipse Project] Equinox Reporter: Andrew Overholt <overholt>
Component: p2Assignee: Simon Kaegi <simon_kaegi>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: bokowski, john.arthorne, nboldt, pascal, simon_kaegi, susan, wmitsuda
Version: unspecified   
Target Milestone: 3.4 RC1   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
illustrative screensoht none

Description Andrew Overholt CLA 2008-04-29 11:50:31 EDT
Created attachment 98009 [details]
illustrative screensoht

The attached screenshot shows the initial repositories in read-only shared mode.  I don't think we should be showing these.
Comment 1 Simon Kaegi CLA 2008-04-29 12:13:37 EDT
Broadening scope of bug. I'm seeing the same repos in a regular install.
Comment 2 John Arthorne CLA 2008-04-29 13:02:50 EDT
I also saw these when I first started a new workspace with a new install on Vista. After closing and reopening the dialog, they were gone. From looking at the repository preference store in the configuration area, they all seem to have "isSystem=true".
Comment 3 Simon Kaegi CLA 2008-04-29 15:47:48 EDT
John beat me to the punch here. After a re-start they disappear. I still see the metadata cache though which surprises me looking at the prefs on disk it is also marked "isSystem=true". Closing and re-opening the dialog I'm finally back to a clean slate.
Comment 4 Simon Kaegi CLA 2008-05-01 12:04:19 EDT
I tracked this down to how we're adding the repos after we've first created them. We're doing addRepository(URL) instead of addRepository(IMetadataRepository) and there are differences in the RepositoryInfo object created. For these repos (metadata cache, rollback repo, dropins) we should use the variant where we pass in the repository.
Comment 5 John Arthorne CLA 2008-05-01 12:24:59 EDT
I don't think you should need to use addRepository(IMetadataRepository) here. Talk  to me about this when you get a chance. I actually spent an hour trying to reproduce this bug on a clea 20080430-1300 build and I was unable to, so it may be an old problem, or due to bad data kicking around from a previous build.
Comment 6 Susan McCourt CLA 2008-05-01 14:51:22 EDT
*** Bug 229835 has been marked as a duplicate of this bug. ***
Comment 7 Susan McCourt CLA 2008-05-01 14:52:32 EDT
From the duplicate bug:
Copying here because the timing of the problem sounds a little different?

------------
Steps:

1. Download and unzip I20080501-0100
2. Start using a new workspace
3. Close the Welcome page
4. Go to Help > Software Updates
5. Click on "Check for Updates" - it comes back with "Nothing to update".
6. Click on the "Available Software" tab

I see four entries that I did not expect:
file:/C:/eclipses/I20080501-0100/
file:/C:/eclipses/I20080501-0100/eclipse/configuration/org.eclipse.osgi/bundles/63/data/listener_844670458/
file:/C:/eclipses/I20080501-0100/eclipse/configuration/org.eclipse.osgi/bundles/69/data/listener_-941504718/
file:/C:/eclipses/I20080501-0100/eclipse/p2/org.eclipse.equinox.p2.core/cache/

Entering a filter text, or choosing a different catgorization gets rid of these
entries and they never come back.
Comment 8 John Arthorne CLA 2008-05-01 17:37:35 EDT
This is another side-effect of repository creation not automatically adding the repository. Clients call repoMan#create, followed by repoMan#add(URL). The result is that the repository manager doesn't know if the repository is a system repository until the next time it is loaded (because all the repository manager has available is a URL).

*** This bug has been marked as a duplicate of bug 228903 ***
Comment 9 John Arthorne CLA 2008-05-07 12:05:10 EDT
*** Bug 230806 has been marked as a duplicate of this bug. ***
Comment 10 Susan McCourt CLA 2008-05-14 23:36:06 EDT
*** Bug 232212 has been marked as a duplicate of this bug. ***