Hardcoded path for SSL Certificates file

Bug #487333 reported by Thomas Vander Stichele on 2009-11-23
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Medium
Unassigned

Bug Description

After patching for python < 2.6.3, I now get this traceback when starting the applet:

[thomas@otto ~]$ ubuntuone-client-applet
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/dbus/connection.py", line 586, in msg_reply_handler
    reply_handler(*message.get_args_list(**get_args_opts))
  File "/usr/lib/python2.6/site-packages/ubuntuone/oauthdesktop/auth.py", line 277, in got_state
    self.acquire_access_token(description, store)
  File "/usr/lib/python2.6/site-packages/ubuntuone/oauthdesktop/auth.py", line 342, in acquire_access_token
    token=self.request_token)
  File "/usr/lib/python2.6/site-packages/oauth/oauth.py", line 336, in from_token_and_callback
    parameters['oauth_token'] = token.key
AttributeError: 'NoneType' object has no attribute 'key'

At the same time, I got an error dialog that popped up (attached)

That was non-obvious to figure out, but it seems like the culprit is this missing file:

/etc/ssl/certs/ca-certificates.crt

This does not exist on my fedora system. Before using it in ssl, at the very least its presence should be checked so a nicer error can be generated.

Attaching a patch that does just so.

Now to figure out where I should be getting this file from in the first place.

A better patch that also takes into account the path that Fedora uses.

This might be reworked at your discretion of course.

dobey (dobey) on 2009-12-22
summary: - oauth traceback when token is None
+ Hardcoded path for SSL Certificates file
dobey (dobey) wrote :

It appears openSUSE does this differently as well. They don't seem to have a ca-certificates.crt file at all. I wonder how people do SSL cert validation in Python on SUSE.

Changed in ubuntuone-client:
assignee: nobody → Rodney Dawes (dobey)
importance: Undecided → Medium
status: New → Triaged
dobey (dobey) on 2014-01-29
Changed in ubuntuone-client:
assignee: Rodney Dawes (dobey) → nobody
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Bug attachments