Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 275227 - [transport] Canceling authentication while resolving in a wizard cancelled the entire resolution
Summary: [transport] Canceling authentication while resolving in a wizard cancelled th...
Status: RESOLVED DUPLICATE of bug 275233
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: p2 (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.5 RC1   Edit
Assignee: Henrik Lindberg CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-06 17:39 EDT by Susan McCourt CLA
Modified: 2009-05-06 20:43 EDT (History)
3 users (show)

See Also:


Attachments
planner patch (842 bytes, patch)
2009-05-06 18:43 EDT, Susan McCourt CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Susan McCourt CLA 2009-05-06 17:39:39 EDT
1 - added http://localhost:8080/never to my list of sites in the preferences
2 - Help->Install New Software
3 - pick some site other than never and select some software to install
4 - make sure [x] Contact all update sites during install to find required software is enabled
5 - Next
6 - authentication prompt (surprising but explainable?!)
7 - cancel the authentication

Now the resolution has been cancelled.
I was expecting that the resolution would continue and just ignore that repo.
Comment 1 Susan McCourt CLA 2009-05-06 17:40:17 EDT
I'll check the UI side on this first and also will compare to 3.4 behavior.
Comment 2 Susan McCourt CLA 2009-05-06 18:41:22 EDT
Although the workflows are different, we have the same problem in 3.4.  Once you've selected something for install, there is an authentication prompt during resolution.  If you cancel this prompt, the entire resolution is cancelled.
Comment 3 Susan McCourt CLA 2009-05-06 18:43:02 EDT
Created attachment 134712 [details]
planner patch

this patch continues gathering installable units even if a particular load repo throws OperationCanceledException.
Comment 4 Susan McCourt CLA 2009-05-06 18:46:29 EDT
requesting review from Pascal.  
Please note that this patch is experimental, I'm not sure the problem should be fixed for 3.5.  It's possible we should review all this again in 3.6.

The user workaround for this problem is to uncheck the  [ ] Contact all sites checkbox and try resolving again.

I'm not sure the implications of this change in the planner (what other scenarios this could effect) but I wanted to open a discussion about it.
Comment 5 Susan McCourt CLA 2009-05-06 18:53:16 EDT
One could perhaps argue that *not fixing* this bug forces the user to uncheck the "Contact all sites" checkbox and prevents more authentication prompts down the line (for example, when looking for artifacts during the actual download).
Comment 6 Susan McCourt CLA 2009-05-06 19:45:03 EDT
I believe that Henrik's proposed fix in bug 275233 would also fix this problem.  In which case this patch is not relevant.
Comment 7 Henrik Lindberg CLA 2009-05-06 20:28:17 EDT

*** This bug has been marked as a duplicate of bug 275233 ***
Comment 8 Henrik Lindberg CLA 2009-05-06 20:43:58 EDT
I decided to mark this bug as a duplicate even if it was older than Bug 275233, since it has a patch.