Bug 16479

Summary: Search for available updates hangs
Product: [Eclipse Project] Platform Reporter: Vlad Klicnik <klicnik>
Component: Update (deprecated - use Eclipse>Equinox>p2)Assignee: Dejan Glozic <dejan>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P1 CC: celek, jeem
Version: 2.0   
Target Milestone: 2.0 F2   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Vlad Klicnik CLA 2002-05-20 16:28:36 EDT
I have a feature whose update URL is pointing to a non-existent site (actually 
the server exists, but the site.xml was not set up (server responds with 
generated page).

I click on "Available Updates" and Search. The search hangs with "Contacting 
Site ..." and never comes back.

I am not sure if this is caused by UI or core.
Comment 1 Vlad Klicnik CLA 2002-05-24 12:38:38 EDT
*** Bug 16711 has been marked as a duplicate of this bug. ***
Comment 2 Dejan Glozic CLA 2002-05-31 18:16:51 EDT
Fixed - the problem was only in the background search inside Update Manager - 
did not affect one-click update because the search is executing in the progress 
dialog context. The background progress was catching the core exception 
(invalid URL) but was neither reporting the exception nor cleanly terminating 
the progress monitor (by calling done()).

Fixed by adding 'done()' in the 'finally' block and by logging the error inside 
the background process (using async exec since SWT is involved).