ubuntuone-preferences stops without default keyring

Bug #903926 reported by vbooh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntuone-client (Ubuntu)
New
Undecided
Unassigned

Bug Description

Ubuntu 10.04.3 LTS lucid
ubuntuone-client-gnome 1.2.2-0ubuntu2
python-gnomekeyring 2.30.0-0ubuntu1.1
python-oauth 1.0a~svn1124-0ubuntu2
python-twisted-web 10.0.0-1
python-ubuntuone-client 1.2.2-0ubuntu2
Start 'ubuntuone-preferences' first time, automatically web-browser opens one.ubuntu.com, enter login and password, then one.ubuntu.com asks 'Add this computer to your Ubuntu One account?', press 'Add This Computer' button, dialog window of gnome keyring manager opens and proposes to create new keyring.
And then, if you have not any default keyring, no matter what you press - 'OK' or 'Cancel' - web-browser opens address
http://localhost:$PORT/?nonce=$NUMBER&oauth_token=$TOKEN&oauth_verifier=$VERIFER&return=https://one.ubuntu.com
with this content:
web.Server Traceback (most recent call last):

<class 'gnomekeyring.CancelledError'>:
/usr/lib/python2.6/dist-packages/twisted/web/server.py, line 125 in process
123 try:
124 resrc = self.site.getResourceFor(self)
125 self.render(resrc)
126 except:
Self
site
twisted.web.server.Site instance @ 0x8dfe20c <twisted.web.server.Site instance at 0x8dfe20c>
Locals
resrc
ubuntuone.oauthdesktop.auth.TemporaryTwistedWebServer instance @ 0x8dfe1cc <ubuntuone.oauthdesktop.auth.TemporaryTwistedWebServer instance at 0x8dfe1cc>
self
twisted.web.server.Request instance @ 0x8c0650c <GET /?nonce=$NUMBER&oauth_token=$TOKEN&oauth_verifier=$VERIFER&return=https://one.ubuntu.com HTTP/1.1>
/usr/lib/python2.6/dist-packages/twisted/web/server.py, line 132 in render
130 def render(self, resrc):
131 try:
132 body = resrc.render(self)
133 except UnsupportedMethod, e:
Locals
resrc
ubuntuone.oauthdesktop.auth.TemporaryTwistedWebServer instance @ 0x8dfe1cc <ubuntuone.oauthdesktop.auth.TemporaryTwistedWebServer instance at 0x8dfe1cc>
self
twisted.web.server.Request instance @ 0x8c0650c <GET /?nonce=$NUMBER&oauth_token=$TOKEN&oauth_verifier=$VERIFER&return=https://one.ubuntu.com HTTP/1.1>
Globals
UnsupportedMethod <class 'twisted.web.error.UnsupportedMethod'>
/usr/lib/python2.6/dist-packages/twisted/web/resource.py, line 210 in render
208 from twisted.web.error import UnsupportedMethod
209 raise UnsupportedMethod(getattr(self, 'allowedMethods', ()))
210 return m(request)
211
Locals
m <bound method TemporaryTwistedWebServer.render_GET of <ubuntuone.oauthdesktop.auth.TemporaryTwistedWebServer instance at 0x8dfe1cc>>
self
ubuntuone.oauthdesktop.auth.TemporaryTwistedWebServer instance @ 0x8dfe1cc <ubuntuone.oauthdesktop.auth.TemporaryTwistedWebServer instance at 0x8dfe1cc>
request
twisted.web.server.Request instance @ 0x8c0650c <GET /?nonce=$NUMBER&oauth_token=$TOKEN&oauth_verifier=$VERIFER&return=https://one.ubuntu.com HTTP/1.1>
/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py, line 453 in render_GET
451 logger.debug("Got verifier %s" % verifier)
452 if nonce and (str(nonce) == str(self.nonce) and verifier):
453 self.retrieve_function(store=self.store_yes_no, verifier=verifier)
454 reactor.callLater(3, self.stop)
Self
nonce 7863306
store_yes_no True
retrieve_function <bound method AuthorisationClient.retrieve_access_token of <ubuntuone.oauthdesktop.auth.AuthorisationClient object at 0x8c0658c>>
Locals
nonce '7863306'
verifier 'ba4120b7-a62a-44bf-9596-addf7530af51'
self
ubuntuone.oauthdesktop.auth.TemporaryTwistedWebServer instance @ 0x8dfe1cc <ubuntuone.oauthdesktop.auth.TemporaryTwistedWebServer instance at 0x8dfe1cc>
Globals
reactor <twisted.internet.gtk2reactor.Gtk2Reactor object at 0x89f138c>
logger
logging.Logger instance @ 0x8cc34ac <logging.Logger instance at 0x8cc34ac>
/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py, line 404 in retrieve_access_token
402 if store:
403 logger.debug("Storing access token in keyring")
404 self.store_token(access_token)
405 logger.debug("Calling the callback_parent")
Locals
store True
access_token <oauth.oauth.OAuthToken object at 0x8e039ac>
self <ubuntuone.oauthdesktop.auth.AuthorisationClient object at 0x8c0658c>
Globals
logger
logging.Logger instance @ 0x8cc34ac <logging.Logger instance at 0x8cc34ac>
/usr/lib/python2.6/dist-packages/ubuntuone/oauthdesktop/auth.py, line 208 in store_token
206 'oauth-consumer-key': self.consumer.key},
207 access_token.to_string(),
208 True)
209 except gnomekeyring.DeniedError:
Self
consumer <oauth.oauth.OAuthConsumer object at 0x8c066cc>
Locals
access_token <oauth.oauth.OAuthToken object at 0x8e039ac>
self <ubuntuone.oauthdesktop.auth.AuthorisationClient object at 0x8c0658c>
Globals
gnomekeyring <module 'gnomekeyring' from '/usr/lib/pymodules/python2.6/gtk-2.0/gnomekeyring.so'>
oauth <module 'oauth.oauth' from '/usr/lib/python2.6/dist-packages/oauth/oauth.pyc'>

<class 'gnomekeyring.CancelledError'>:

dobey (dobey)
affects: ubuntuone-client-gnome → ubuntuone-client (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.