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

Bug 359683

Summary: Category missing when trying to install plugin through update site
Product: [Eclipse Project] Equinox Reporter: Branko Drevensek <branko.drevensek>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: pascal
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: stalebug
Attachments:
Description Flags
projects to show a problem none

Description Branko Drevensek CLA 2011-10-03 05:39:54 EDT
Build Identifier: 20110916-0149

Features are present when trying to install them through update site, but they are not categorized, although category was defined in update site. User has to clear "group items by category" when installing.

Reproducible: Always

Steps to Reproduce:
1. Crate new feature. Just give some details. No plugins etc.
2. Create update site. There create category, add feature created before to category.
3. Build all by pressing "build all" on "Update site map"
4. Try to install feature through "install new software". It is fine, category visible and all.
5. Open feature's feature.xml, up version number.
6. Try to do "build all" again on "update site map". Do Synchronize, "remove features", artifacts.jar, content.jar if neccessary, beforehand.
7. When update site has been rebuilt, try to install feature. It is not properly categorized anymore.
Comment 1 Pascal Rapicault CLA 2011-10-03 09:05:57 EDT
I did the following:
- Create a feature
- Create a site
- Add a category
- Add the feature to the category
- Build
- look at the site everything was fine

Then I:
- Updated the version of the feature (from 1.0.0 to 1.2.0)
- Added the feature to the category
- Build the site
- look at the site. Only the old content was shown, this is a known issue. 
- Restarted eclipse
- look at the site everything was fine.

I suspect the pb is that you are not adding again the feature to the category.
Comment 2 Branko Drevensek CLA 2011-10-03 09:44:14 EDT
Created attachment 204448 [details]
projects to show a problem
Comment 3 Branko Drevensek CLA 2011-10-03 09:45:24 EDT
>Then I:
>- Updated the version of the feature (from 1.0.0 to 1.2.0)
>***- Added the feature to the category***

This way it also works for me. This fixes problems.

But update site definitely can become missing.
1) For my next test, I added dummy plugin into a feature. 
2) Then rebuild site. 
3) Restart. 
4) Everything fine. 
5) Bump plug-in version.
6) Rebuild site.
7) Restart.
8) Try to install. Feature in category is older version. New version only
visible if "group items by category" is cleared. 

What I did, that completely removed category was: Delete all jars from features
& plugins subdirectory (in updatesite package explorer), and remove
artifacts.jar & contents.jar. Rebuild site. Now features are there, category
not.

I'm attaching my projects (above). 

1) Just import them, then do "Build all" in "Update site map". Restart. Try to
install. No categories.
2) Remove features from side. Re-add. Rebuild. Restart. Install. Category is
fine.
3) Bump plug-in version. "Build all" in "Update site map". Restart. Try to
install. Old versions under category, new ones if you clear "group items".
Comment 4 Eclipse Genie CLA 2019-10-25 19:02:29 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.