Bug 170507 - Plugin always updates from original install location and not new update location specified in the update manager.
Summary: Plugin always updates from original install location and not new update locat...
Status: RESOLVED FIXED
Alias: None
Product: AJDT
Classification: Tools
Component: UI (show other bugs)
Version: unspecified   Edit
Hardware: All Windows XP
: P3 normal (vote)
Target Milestone: 1.6.4   Edit
Assignee: AJDT-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-15 12:45 EST by Nicholas Allen CLA
Modified: 2009-03-13 13:56 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicholas Allen CLA 2007-01-15 12:45:23 EST
The AJDT plugin changed update location. Unfortunately, I had originally installed it from the old location. I changed the location in the update manager to the new location but when I search for updates I get an error because Eclipse still uses the old update location.

I even tried uninstalling the plugin, removing the update site, restarting eclipse, adding the new update site, searching for new features, re-installing AJDT and then searching for updates. Eclipse still tries to update from the old location even though I have installed from the new location. The only solution (well I hope it will work - haven't tried yet but expect it will work) is to uninstall eclipse, reinstall it, add the update sites and then install the plugins.

This means a plugin can never change update location and must always stay at the original location. If a plugin location changes then Eclipse needs to be re-installed for all users who use that plugin.
Comment 1 Nicholas Allen CLA 2007-01-15 13:14:01 EST
Even reinstalling Eclipse does not work. I imagine Eclipse has saved the update location somewhere in the registry or elsewhere. It always tries to update from the original update location and not the new one. 
Comment 2 DJ Houghton CLA 2007-01-15 13:39:20 EST
Eclipse does not cache information in the Windows registry, all of its information is stored in the workspace or in the configuration area (usually a sub-dir of the install).

Are you saying that you download Eclipse 3.2.1, extract it, run it, and are unable to connect and install AJDT?
Comment 3 Nicholas Allen CLA 2007-01-15 13:43:50 EST
No I can re-install it from the new location using the update manager no problem. But when I try to update it it uses the original install location and not the new location it just installed from.
Comment 4 DJ Houghton CLA 2007-01-15 13:45:32 EST
What version are you trying to update from? What version are you trying to update to? What are the URLs of the update sites that you are using?
Comment 5 Willian Mitsuda CLA 2007-01-15 13:47:04 EST
Nicholas: can you confirm if your AJDT is trying to update from:

http://download.eclipse.org/technology/ajdt/32/update

Or something like this? If so, I think I got into the same problem some time ago.

Currently the update site is:

http://download.eclipse.org/tools/ajdt/32/update

I don't remember exactly what I did, but I think you have to change the location on "search for new features..." (create a new entry and uncheck the built-in, if necessary).

Let me know if this workaround works for you.
Comment 6 Nicholas Allen CLA 2007-01-15 13:51:04 EST
I have entered the following info for the update site:

Name: AspectJ
URL: http://download.eclipse.org/tools/ajdt/32/update

It installs apectJ fine using this location but when I search for updates I get
this message:

Network connection problems encountered during search.
  Unable to access "http://download.eclipse.org/technology/ajdt/32/update/".
    Unable to access site:
"http://download.eclipse.org/technology/ajdt/32/update/" [Server returned HTTP
response code: "404 Not Found" for URL:
http://download.eclipse.org/technology/ajdt/32/update/.]
    Unable to access site:
"http://download.eclipse.org/technology/ajdt/32/update/" [Server returned HTTP
response code: "404 Not Found" for URL:
http://download.eclipse.org/technology/ajdt/32/update/.]

I was told on the Eclipse mailing list that
"http://download.eclipse.org/technology/ajdt/32/update/" is the old location. I
have told it to use "http://download.eclipse.org/tools/ajdt/32/update" but it
ignores this request no matter what I do. There is of course no update to
install because I have the latest version but Eclipse is still looking in the
wrong place and giving this annoying error message every time.
Comment 7 Nicholas Allen CLA 2007-01-15 13:52:49 EST
I HAVE changed the update location. Eclipse is ignoring the location I specify in the update manager even if I delete Eclipse and reinstall it. It is obviously saving the update locations somewhere. This bug happens for me on both Linux and Windows.
Comment 8 Dejan Glozic CLA 2007-04-11 15:27:46 EDT
When you are updating features, only the URL in features is used. The site specified in the Update managers are only used when searching for new features to install (those you don't already have).

There is a way to force Update to look in a different site than one specified in the feature itself for updates. You can do it by using Update Policy file. Read about Update policy here - it may help you to redirect updates to a different location:

http://help.eclipse.org/help32/topic/org.eclipse.platform.doc.user/tasks/tasks-37.htm
Comment 9 Mike Wilson CLA 2008-04-10 13:17:00 EDT
Is this not a bug in the feature itself (i.e. the location changed, but the feature is still pointing at the old location)? If so, shouldn't this be moved to AJDT?
Comment 10 John Arthorne CLA 2008-04-14 00:23:32 EDT
Yes, update location is defined in feature.xml, so AJDT team should ensure their features are referring to the correct location.
Comment 11 Andrew Clement CLA 2008-04-14 01:57:23 EDT
AJDT hasn't been updated for Eclipse 3.2 since mid 2007.  In that last update AJDT was still a technology project, hence the update site URL (encoded in the feature).  It possibly continued to work because either a softlink was in place from technology/ajdt to tools/ajdt or the old location had not been removed - that has now changed and I guess the old update site no longer works.  There are no updates from that version.  A workaround is to modify the feature.xml in the installed plugin to point to the new location.  It will not detect an update because we are not currently planning scheduled updates for Eclipse 3.2 (only one user I know of has been requesting them) - but at least it won't error when searching for updates.

All the more recent versions of AJDT point to the current update site locations.
Comment 12 Andrew Eisenberg CLA 2009-02-13 17:28:10 EST
This bug has been fixed for a while.