Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366250 - builds model is inconsistent when changing URL of an autodiscovered server
Summary: builds model is inconsistent when changing URL of an autodiscovered server
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 0.9   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-09 15:50 EST by Steffen Pingel CLA
Modified: 2011-12-09 16:21 EST (History)
0 users

See Also:


Attachments

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