/usr/lib/ubuntu-sso-client/ubuntu-sso-login shouldn't stop if a login dialog is shown

Bug #857514 reported by Didier Roche on 2011-09-23
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Single Sign On Client
software-center (Ubuntu)

Bug Description

1. a service A start /usr/lib/ubuntu-sso-client/ubuntu-sso-login by calling find_credentials() and get it feedbacks
2. before /usr/lib/ubuntu-sso-client/ubuntu-sso-login, an application B calls login_or_register() (without the credential being on the desktop)
-> the dialog to register/login appears
3. the service seems to ignore there is a pending request and so stop /usr/lib/ubuntu-sso-client/ubuntu-sso-login
4. the dialog, having the service stopped, close. People have the impression it crashes.

Didier Roche (didrocks) wrote :

easy way to reproduce on Oneiric up to date:
1. remove "Ubuntu Software Center" from your gpg key (using seahorse for instance)
2. ensure oneconf is stopped: oneconf-query --stop
3. open software-center
4. click on File -> Sync between computer
-> there is an sso login_or_register() dbus command req. starting the service
Note as well that oneconf-service is started as well
5. don't file the dialog, wait 20s (oneconf-service is independently making a sso request find_credentials() 20s after starting)
-> once oneconf-service made its request, the ubuntu-sso-login process will close, making the dialog closing.

Didier Roche (didrocks) wrote :

Another way to trigger it (other way around: starting the service by find_credential)
1. same step, ensure you don't have "Ubuntu Software Center" credential.
2. ensure oneconf is stopped: oneconf-query --stop
3. open software-center
4. launch python /usr/lib/python2.7/dist-packages/oneconf/networksync/ssohandler.py -> this call find_credentials() immediatly and starting the ubuntu-sso-login (then, will make a new call every 30s)
5. Before the ubuntu-sso-login service shutdown, click on File -> Sync between computer
-> the login/register dialog is opened
6. the dialog will close after at most within the 10s (the ubuntu-sso-login will stop, despite the software-center pending request).

Didier Roche (didrocks) on 2011-09-26
Changed in ubuntu-sso-client:
status: New → Invalid
affects: ubuntu-sso-client (Ubuntu) → software-center (Ubuntu)
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-center -

software-center ( oneiric; urgency=low

  [ Kiwinote ]
  * softwarecenter/db/update.py:
    - update the sc-agent db even if there are no apps available (LP: #857268)
  * softwarecenter/utils.py:
    - fix UnicodeDecodeError in get_icon_from_theme() (LP: #839391)
  * utils/submit_review_gtk3.py:
    - fix UnicodeDecodeError in _on_one_gwibber_account() (LP: #836911)

  [ Gary Lasker ]
  * softwarecenter/ui/gtk3/app.py:
    - fix intermittent startup crashes (LP: #846674, LP: #857989)

  [ Matthew McGowan ]
  * work around some oddness that seems to have broken

  [ Michael Vogt ]
  * softwarecenter/ui/gtk3/app.py:
    - do not crash if there is no active pane
  * softwarecenter/backend/reviews.py:
    - be more robust against db corruption when writing out
      the bsddb for unity (LP: #858437)
  * softwarecenter/backend/login_sso.py:
    - port to the new SSO dbus API (LP: #857514)

  [ Didier Roche ]
  * lp:~didrocks/software-center/replace_logintext_by_helptext:
    - use help_text internally to be aligned with the new ubuntu SSO
      parameter name (LP: #857514)
 -- Michael Vogt <email address hidden> Mon, 26 Sep 2011 16:59:33 +0200

Changed in software-center (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers