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

Bug 366250

Summary: builds model is inconsistent when changing URL of an autodiscovered server
Product: z_Archived Reporter: Steffen Pingel <steffen.pingel>
Component: MylynAssignee: Steffen Pingel <steffen.pingel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 0.9   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Steffen Pingel CLA 2011-12-09 15:50:02 EST
Steps:
1. Setup Hudson server that advertises itself as http://localhost:8000/ on port 8080
2. Add server and edit URL
3. Terminate Eclipse forcefully
4. Restart

The server is shown with the advertised URL and the edits are lost.

workspace/.metadata/.plugins/org.eclipse.mylyn.builds.ui/builds.xmi

<builds:BuildModel xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:builds="http://eclipse.org/mylyn/models/build">
  <servers url="http://localhost:8080/" name="New Hudson Server" connectorKind="org.eclipse.mylyn.hudson">
    <attributes key="label" value="New Hudson Server"/>
    <attributes key="url" value="http://localhost:8000/"/>
    <attributes key="id" value="0e4bdf5b-b6a6-4214-9ca9-6d741cac221e"/>
  </servers>
  <plans name="test-aggregated" server="//@servers.0" id="test-aggregated" selected="true"/>
</builds:BuildModel>
Comment 1 Steffen Pingel CLA 2011-12-09 16:21:52 EST
This has been addressed as part of bug 343748 by delaying the model saving until until model updates are committed.