Bug 22720 - [Reg] B3 Cannot enable disabled Bogus 1.0.1 feature
Summary: [Reg] B3 Cannot enable disabled Bogus 1.0.1 feature
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Update (deprecated - use Eclipse>Equinox>p2) (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 2.0.1   Edit
Assignee: Dejan Glozic CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-22 11:11 EDT by Dejan Glozic CLA
Modified: 2002-08-30 15:15 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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