Ubuntu SSO Client does not notify of failed Ubuntu One ping attempt / invalidate token
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Ubuntu Single Sign On Client | Status tracked in Trunk | |||||
Stable-1-0 |
Fix Released
|
Critical
|
Natalia Bidart | |||
Trunk |
Fix Released
|
Critical
|
Natalia Bidart | |||
ubuntu-sso-client (Ubuntu) |
Fix Released
|
High
|
Natalia Bidart | |||
Maverick |
Fix Released
|
Undecided
|
Unassigned | |||
Natty |
Fix Released
|
High
|
Natalia Bidart |
Bug Description
Currently due to server-side bug LP:660510 users cannot subscribe successfully to Ubuntu One service using Ubuntu SSO Client.
The client sends ping to Ubuntu One servers but server replies with 500 Internal Server Error. Then Ubuntu SSO Client quits leaving the user 1 on 1 with non-working Preferences and AUTH_FAILED in SyncDaemon next time he/she starts ubuntuone-
I believe in case the service requires pinging, the client should notify the user if there had been any problems during account creation and point to the web site of the service (where it is possible that notification can be found).
The tokens retrieved are valid from Ubuntu SSO POV but for Ubuntu One these tokens do not exist since there is no such user with the email specified.
TEST CASE:
To test, run in this branch the following:
* remove your Ubuntu One token from the keyring.
* run the dbus daemon with exactly this command (using the SSO staging service will make the ping fail):
killall ubuntu-sso-login; DEBUG=True PYTHONPATH=. USSOC_SERVICE_URL="https:/
* In d-feet, execute the method 'register' in the com.ubuntu.sso bus name, object path /credentials, interface name ApplicationCred
Parameters must be something like:
'Ubuntu One', '', '', 0
* Register a valid email address (you'll need to access the verification code). After you enter the verification code and the success page is shown, check the console where you're running the daemon, you'll see something like:
_ping_url (app_name: Ubuntu Two): Problem opening the ping_url.
Traceback (most recent call last):
...
HTTPError: HTTP Error 403: FORBIDDEN
_ping_url (app_name: Ubuntu Two): Calling error_cb at <bound method Credentials.
Behavior expected:
- The token for 'Ubuntu One' is not stored in the keyring since the ping failed.
Related branches
- Roman Yepishev (community): Approve (fieldtest)
- Alejandro J. Cura (community): Approve
-
Diff: 58 lines (+22/-1)2 files modifiedubuntu_sso/main.py (+4/-1)
ubuntu_sso/tests/test_main.py (+18/-0)
Changed in ubuntu-sso-client: | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Alejandro J. Cura (alecu) |
tags: | added: desktop+ u1-maverick-sru |
Changed in ubuntu-sso-client (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → High |
assignee: | nobody → Naty Bidart (nataliabidart) |
milestone: | none → maverick-updates |
Changed in ubuntu-sso-client: | |
assignee: | Alejandro J. Cura (alecu) → Naty Bidart (nataliabidart) |
status: | Triaged → In Progress |
importance: | High → Critical |
Changed in ubuntu-sso-client: | |
status: | In Progress → Fix Committed |
Changed in ubuntu-sso-client: | |
status: | Fix Committed → Fix Released |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
Changed in ubuntu-sso-client (Ubuntu Natty): | |
milestone: | maverick-updates → none |
Changed in ubuntu-sso-client (Ubuntu Natty): | |
status: | Triaged → Fix Released |
tags: | added: testcase |
Accepted ubuntu-sso-client into maverick-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https:/ /wiki.ubuntu. com/Testing/ EnableProposed for documentation how to enable and use -proposed. Thank you in advance!