Bug 22720

Summary: [Reg] B3 Cannot enable disabled Bogus 1.0.1 feature
Product: [Eclipse Project] Platform Reporter: Dejan Glozic <dejan>
Component: Update (deprecated - use Eclipse>Equinox>p2)Assignee: Dejan Glozic <dejan>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: celek
Version: 2.0   
Target Milestone: 2.0.1   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Dejan Glozic CLA 2002-08-22 11:11:34 EDT
Due to the problem in the UI, updating Root 1.0.0 to 1.0.1 results in Bogus 
1.0.1 being disabled. An attempt to enable optional feature Bogus 1.0.1 fails 
with a strange message that XYZ 1.0.0 feature cannot be loaded ??
Comment 1 Dejan Glozic CLA 2002-08-22 11:12:59 EDT
See the original problem 22685.
Comment 2 Dejan Glozic CLA 2002-08-23 15:46:44 EDT
The UI portion of the problem is in the new activity constraint that does not 
allow optional children to be enabled if none of their parents are enabled. Two 
calls to obtain feature from the feature reference were made without testing if 
the feature reference is optional. For missing optional feature (a valid case), 
core exception was allowed to pass. 

The fix was to add an inner try/catch block when asking for a feature. In the 
catch block, feature reference is tested if it is optional. If yes, exception 
is ignored and the feature is skipped. Otherwise, the exception is rethrown 
(exception cannot be allowed for non-optional children).

The fix has been tested and it appears to solve the problem in this bug.
Comment 3 Christophe Elek CLA 2002-08-30 15:15:32 EDT
fixed