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

Bug 322970

Summary: [planner] When removing IUs, the default (bundle) fragment is not attached
Product: [Eclipse Project] Equinox Reporter: Ian Bull <irbull>
Component: p2Assignee: P2 Inbox <equinox.p2-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: mknauer, mober.at+eclipse
Version: 3.6   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Ian Bull CLA 2010-08-17 23:48:43 EDT
I created a profile, and then removed an IU from that profile.  Looking at the operands, the default Bundle fragment (CU) is not attached.  This means that while the IU is removed, it's not unconfigured.

See DirectorApplicationTest#testEPPProfileRemoveIU for the test case.
Comment 1 Ian Bull CLA 2010-08-18 15:32:38 EDT
This appears only to be a problem with certain IUs.  In this case, ch.logback.* was installed in the profile, but these IUs are not really needed, that is, on the next operation the planner wants to remove them. We first slice the profile, and attach the fragments to only those things in the slice. These IUs are not in that slice (hence they don't have the default CU).
Comment 2 Ian Bull CLA 2010-09-12 04:35:44 EDT
This is actually not a problem with p2, but rather a problem with the profile we started from.  That is, p2 created a bad profile (see bug 323322), and now when use this, things go south pretty quickly.  (Garbage in -- Garbage out).