This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 423882 - [IDE] Workspace version check should warn if workspace is too new
Summary: [IDE] Workspace version check should warn if workspace is too new
Status: VERIFIED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.3.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 4.4 M7   Edit
Assignee: Christian Georgi CLA
QA Contact: Paul Webster CLA
URL:
Whiteboard:
Keywords:
: 331396 (view as bug list)
Depends on:
Blocks: 441329
  Show dependency tree
 
Reported: 2013-12-12 04:52 EST by Christian Georgi CLA
Modified: 2014-08-07 06:08 EDT (History)
3 users (show)

See Also:


Attachments
Worspace > IDE (16.73 KB, image/png)
2013-12-12 04:52 EST, Christian Georgi CLA
no flags Details
Workspace < IDE (18.86 KB, image/png)
2013-12-12 04:53 EST, Christian Georgi CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Georgi CLA 2013-12-12 04:52:12 EST
Whenever users have multiple IDE installations on their machines, they might open up workspaces with one IDE and later-on use the same worspace with an older IDE.  This may lead to all kinds of problems including data loss.
The current workspace version check in IDEApplication does not sufficiently address this issue since it compares the workspace against a static IDE version of "1", which has never changed ever since it was introduced.

The patch below refines the check logic by comparing against major and minor version of the bundle org.eclipse.core.runtime (this one was chosen just for compatibility reasons).  It furthermore shows up 
* A warning if workspace > IDE
* An info if workspace < IDE.

Also see the attached screenshots.
Comment 1 Christian Georgi CLA 2013-12-12 04:52:46 EST
Created attachment 238272 [details]
Worspace > IDE
Comment 2 Christian Georgi CLA 2013-12-12 04:53:04 EST
Created attachment 238273 [details]
Workspace < IDE
Comment 3 Christian Georgi CLA 2013-12-12 04:57:06 EST
https://git.eclipse.org/r/#/c/19687/
Comment 4 Dani Megert CLA 2013-12-18 07:19:51 EST
*** Bug 331396 has been marked as a duplicate of this bug. ***
Comment 6 Wojciech Sudol CLA 2014-06-04 10:50:54 EDT
Verified in I20140528-2000.