Community
Participate
Working Groups
Hi, I have bumped into the following issue with Update Manager in Eclipse 3.1 RC1 build. The problem occurs when you have "links" folder with *.link files enabling third-party plugins (I have been using this feature since Eclipse 2.x). When you start Eclipse first time it successfully discovers and enables all plugins placed into "links" folder. BUT on the second start Update Manager shows DULICATE entries for each extension location and plugin installed. It seems that Eclipse shows both its internal plugin directory and "links" contents in Update Manager.
Looks like a dup of bug 97148 *** This bug has been marked as a duplicate of 97148 ***
Dorian, this is probably caused by my now infamous patch, but is a different issue. I will be looking into it.
The problem arises from the fact sites are keyed by the URL's external form. Any variations in the URL string (drive letter in upper/lower case, presence of a slash before the drive letter, etc) will cause trouble during site lookup.
Created attachment 22090 [details] patch for org.eclipse.update.configurator This patch makes sure the operations in Configuration that take site URLs as keys translate them into a canonical form before doing any sort of lookup. This fixes this problem and also fixes bug 97165 (which has been worked around anyway).
thanks Rafael. The patch looks fine. I'll ping Dejan to see if more testing can be done on it.
Looks fine to me too, but based the recent experence, I will hold my breath a bit longer :-). One comment: is 'canonicalizeURL' even a word? Something along the line of 'getCanonicalForm(String url)' or similar.
this really becomes a religious experience :-)
As in 'let us pray that this is the last regression' :-)?
Ok, one more and I will remove myself from the CC list...
no, like in: Main Entry: ca·non·i·cal Pronunciation: -ni-k&l Function: adjective 1 : of, relating to, or forming a canon 2 : conforming to a general rule or acceptable procedure : ORTHODOX 3 : of or relating to a clergyman who is a canon (will all due apologies to Rafael, who I don't want to alienate :-)
Created attachment 22113 [details] org.eclipse.update.configurator_3.1.0.jar For people testing, this is configurator plug-in jar built with 3.1RC1 + patch from bug 97148 comment 24, and this bug comment #4.
This patch solves it for me, but only with a -clean and a new workspace.
Clean is probably needed to get rid of obsolete paths in your platform.xml.
Patch released into HEAD.
*** Bug 97942 has been marked as a duplicate of this bug. ***
marking the bug as fixed, as per comment #14. Please re-open if you still see problems.