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

Bug 360885

Summary: Local Composite Repositories have no content
Product: [Eclipse Project] Equinox Reporter: Phil Denis <denisp>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: denisp, matthew
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard: stalebug

Description Phil Denis CLA 2011-10-13 14:47:01 EDT
Build Identifier: 20100617-1415

When adding a composite repository using a local directory (i.e. a path to a folder on disk), the site reports no features found.  However, pointing directly to the child repositories works properly.  Installing a web server locally and pointing to the same composite repository using http://localhost/path-to-my-repo works properly.

Reproducible: Always

Steps to Reproduce:
1. Create a normal, p2 site in a folder with a simple feature in it
2. Create a composite repository pointing to the child repo created in step 1
3. Open the Help->Software Updates dialog
4. Add the composite repo (as a LOCAL folder).  Browse to it and select the folder.
5. Note that there are no features available.
6. Add the child repo as a local folder.  Note that there are features available.
Comment 1 Matthew Piggott CLA 2011-10-13 14:49:42 EDT
Does your composite repository use relative paths to refer to the children?
Comment 2 Phil Denis CLA 2011-10-13 15:04:03 EDT
(In reply to comment #1)
> Does your composite repository use relative paths to refer to the children?

I've tried it both with relative paths and absolute paths.
Comment 3 DJ Houghton CLA 2011-10-13 16:40:33 EDT
This works ok for me when I use an absolute URI as the child location, but fails when using a relative path.
Comment 4 DJ Houghton CLA 2011-10-14 10:38:27 EDT
Another interesting thing I've noticed is this. If you have a local composite repository and the child is absolute:
- if you select the repo in the Available Software Sites in the preferences and hit Reload you will see a "repo not found" error in the Console
- you don't get that error if you just go and try to install via the Install New Software dialog
- whether you get the error message or not, you are still able to install from that site.
Comment 5 DJ Houghton CLA 2011-10-14 10:50:16 EDT
Strange... this is working for me ok now.
Comment 6 Phil Denis CLA 2011-10-14 11:56:02 EDT
(In reply to comment #5)
> Strange... this is working for me ok now.

Perhaps it just appears to be working due to this bug, where composite repositories are cached until Eclipse is restarted?
    https://bugs.eclipse.org/bugs/show_bug.cgi?id=360995
Comment 7 DJ Houghton CLA 2011-10-14 13:01:20 EDT
Don't think so. I made sure to restart Eclipse every time and clear the config and workspace areas as well.
Comment 8 Eclipse Genie CLA 2019-10-29 01:29:44 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.