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

Bug 82301

Summary: 'Scan for update' of a feature cannot find a "Feature" version
Product: [Eclipse Project] Platform Reporter: Bill Khoa <billkhoa>
Component: Update (deprecated - use Eclipse>Equinox>p2)Assignee: Platform-Update-Inbox <platform-update-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: andrei, markus.kell.r, trang_tran
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard: obsolete
Attachments:
Description Flags
This is site.xml file that I used for update site none

Description Bill Khoa CLA 2005-01-05 22:08:35 EST
I created three versions of XYZ feature: com.example.xyz_1.0.0,
com.example.xyz_1.0.1 and com.example.xyz_2.0.0.

After that, I created an update-site and add three above features into it.

I hosted this site (include jar files of features, plugins) on a localhost
Tomcat server.

When I "Find and Install" (Help -> Software Updates -> Find and Install) with
that site, Eclipse shows all features correctly. I seclected version 1.0.0 and
install it.

Now, I try to update com.example.xyz. I go to "Help -> Software Update -> Manage
Configuretion", select XYZ 1.0.0 feature, click "Scan for Update". Eclipse
showes XYZ 1.0.1 only. The "feature" release 2.0.0 cannot be found. 

I have reproduce this bug many times.
Comment 1 Bill Khoa CLA 2005-01-05 22:15:31 EST
Created attachment 16962 [details]
This is site.xml file that I used for update site
Comment 2 Dorian Birsan CLA 2005-01-05 22:42:59 EST
By design, updates are only allowed within the compatible or equivalent 
matches, but not for major releases. So, 1.0.0 to 1.0.1 works, but not to 
2.0.0. In fact, updates to 1.1.0 are only allowed if you set the appropriate 
preference in the Install/Update preference page.

You marked the bug as major, is this severly impacting your application? Does 
your plugin have to be 2.0.0?
Comment 3 Bill Khoa CLA 2005-01-05 23:10:32 EST
Yes, it is my usecase. I want to create a update site that allows user upgrade
from any his older version to latest version. I do not know what is version he
is using. I think that Eclipse should show all newer versions by default. 
Comment 4 Markus Keller CLA 2006-01-20 14:56:24 EST
This is clearly a bug. I would understand it if the 'Scan for Updates' link doesn't want to install a possibly incompatible feature version, but it should at least tell the user that such a version is available and that it can be installed via 'Find and Install...'.

I don't think the normal user knows about the setting on the Install/Update preference page. IMO, this 'Valid updates' setting should be reachable from within the Product Configuration dialog.
Comment 5 John Arthorne CLA 2012-07-24 10:19:54 EDT
The Eclipse Update component is no longer under development, and no longer exists in the Eclipse Platform 4.x stream. If this problem still occurs in Eclipse Platform 4.2 or later, please enter a new bug report against Equinox p2.