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

Bug 247580

Summary: Remote Services configuration widget nullifies providers
Product: [Tools] PTP Reporter: Mike Kucera <mikekucera>
Component: RDTAssignee: Vivian Kong <vivkong>
Status: RESOLVED FIXED QA Contact: Greg Watson <g.watson>
Severity: normal    
Priority: P3 CC: recoskie
Version: 2.1M2   
Target Milestone: 2.1M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Mike Kucera CLA 2008-09-16 18:16:29 EDT
Steps to reproduce:
- Open the Remote Services property page on an RDT project
- Currently there are two services displayed in the list, indexing and build
- Modify only one of the services
- Click OK

The service that was not modified gets nullified. This causes the service model configuration to not be saved properly when a save event occurs.

I think the cause of the bug is that the fProviderIDToProviderMap is initially empty and is only written to when the Configure button is pressed. So if you never click Configure for one of the services it remains missing from the map. The map should probably be initialized with the currently configured providers.
Comment 1 Vivian Kong CLA 2008-09-17 13:49:57 EDT
I have a patch for this in bug 246900
Comment 2 Chris Recoskie CLA 2008-09-18 11:13:42 EDT
This still happens if you launch the configure dialog and then cancel it.
Comment 3 Vivian Kong CLA 2008-09-18 11:23:59 EDT
Let me take a look again.
Comment 4 Vivian Kong CLA 2008-09-18 12:11:15 EDT
Should be fixed with patch in bug 247578.
Comment 5 Chris Recoskie CLA 2008-09-18 12:17:02 EDT
Yep.  Marking as fixed.