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

Bug 388248

Summary: Removed configurations appear in ConfigurationAdmin.listConfigurations()
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ClientAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 1.0   
Target Milestone: 1.0 M2   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2012-08-28 12:20:03 EDT
When using Orion's Preferences Service as the backing store for configurations, the ConfigurationAdmin.listConfigurations() can return nonexistent Configurations.

1. Create a configuration by typing some custom JSLint options into its text field on the Plugin Settings page. Press Enter or unfocus the field so the creation takes effect.
2. Now remove the configuration by clearing the text field.
3. I expect ConfigurationAdmin.listConfigurations() to not include the removed configuration, but it does appear in the list, and has getProperties() === null.

This should never happen, the list should only include "current" configurations, meaning ones that have not been removed and have non-null properties.