Merge lp:~mandel/ubuntu-sso-client/fix-stale-broker into lp:ubuntu-sso-client
| Status: | Merged | ||||
|---|---|---|---|---|---|
| Approved by: | Mike McCracken on 2012-08-30 | ||||
| Approved revision: | 998 | ||||
| Merged at revision: | 995 | ||||
| Proposed branch: | lp:~mandel/ubuntu-sso-client/fix-stale-broker | ||||
| Merge into: | lp:ubuntu-sso-client | ||||
| Diff against target: |
169 lines (+111/-6) 2 files modified
ubuntu_sso/utils/ipc.py (+34/-6) ubuntu_sso/utils/tests/test_ipc.py (+77/-0) |
||||
| To merge this branch: | bzr merge lp:~mandel/ubuntu-sso-client/fix-stale-broker | ||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Mike McCracken (community) | Approve on 2012-08-30 | ||
| Roberto Alsina (community) | 2012-08-30 | Approve on 2012-08-30 | |
|
Review via email:
|
|||
Commit Message
- Re-start sso if we get a stale broker amd re-request all the remote objects (LP: #1043367).
Description of the Change
- Re-start sso if we get a stale broker amd re-request all the remote objects (LP: #1043367).
If you want to do IRL simply start sso in one terminal, launch control panel and kill sso in the middle of the work.
| Mike McCracken (mikemc) wrote : | # |
For posterity's sake: how to IRL test, so we know when this might happen in real life.
start with no creds
start sso-login
start u1-cp
cp will find no creds, show the initial screen asking you to log in or create a new account
** here, kill sso-login
then try to continue with CP, it should spawn a new sso-login and continue on its way.
if you already have creds, CP gets them once and caches them, so you shouldn't get a stale broker error if you've got creds successfully once, since it shouldn't call into sso again.

Looks good to me