The ping URL is returning 403 FOrbidden

Bug #828417 reported by Roberto Alsina
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu One Client
Fix Released
Critical
Natalia Bidart

Bug Description

Currently I get this in the log when trying to login:

2011-08-17 20:28:59,538:538.000106812 - ubuntu_sso.main.windows - ERROR - CredentialsManagement: emitting CredentialsError with app_name "Ubuntu One" and error_dict {'error_message': 'Problem opening the ping_url', 'detailed_error': 'Traceback (most recent call last):\n File "C:\\Users\\ROBERTO\\canonical\\ubuntu-sso-client\\ubuntu_sso\\credentials.py", line 117, in inner\n result = yield f(self, *a, **kw)\n File "C:\\Python27\\lib\\site-packages\\twisted\\internet\\defer.py", line 1141, in unwindGenerator\n return _inlineCallbacks(None, f(*args, **kwargs), Deferred())\n File "C:\\Users\\ROBERTO\\canonical\\ubuntu-sso-client\\ubuntu_sso\\credentials.py", line 247, in _ping_url\n response = urllib2.urlopen(request)\n File "C:\\Python27\\lib\\urllib2.py", line 126, in urlopen\n
   return _opener.open(url, data, timeout)\n File "C:\\Python27\\lib\\urllib2.py", line 398, in open\n response = meth(req, response)\n File "C:\\Python27\\lib\\urllib2.py", line 511, in http_response\n \'http\', request, response,
code, msg, hdrs)\n File "C:\\Python27\\lib\\urllib2.py", line 436, in error\n
  return self._call_chain(*args)\n File "C:\\Python27\\lib\\urllib2.py", line 370, in _call_chain\n result = func(*args)\n File "C:\\Python27\\lib\\urllib2.py", line 519, in http_error_default\n raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)\nHTTPError: HTTP Error 403: FORBIDDEN\n'}.

----------------

Tested using the windows client.

----------------

Tried again, and now I get this log in sso-client:

2011-08-17 21:19:28,029:29.000043869 - ubuntu_sso.credentials - INFO - find_credentials: self.app_name 'Ubuntu One', result is {}? False
2011-08-17 21:19:28,030:30.9998989105 - ubuntu_sso.credentials - INFO - Pinging
server for app_name 'Ubuntu One', ping_url: 'https://one.ubuntu.com/oauth/sso-finished-so-get-tokens/{email}?platform_version=7&platform=Windows&client_version=0.1&platform_arch=AMD64', email <email address hidden>'.
2011-08-17 21:19:28,042:42.9999828339 - ubuntu_sso.credentials - ERROR - _ping_url (app_name: Ubuntu One): Problem opening the ping_url.
Traceback (most recent call last):
  File "C:\Users\ROBERTO\canonical\error_message_key\ubuntu_sso\credentials.py", line 116, in inner
    result = yield f(self, *a, **kw)
  File "C:\Python27\lib\site-packages\twisted\internet\defer.py", line 1141, in
unwindGenerator
    return _inlineCallbacks(None, f(*args, **kwargs), Deferred())
  File "C:\Users\ROBERTO\canonical\error_message_key\ubuntu_sso\credentials.py", line 240, in _ping_url
    headers = utils.oauth_headers(url, credentials)
  File "C:\Users\ROBERTO\canonical\error_message_key\ubuntu_sso\utils\__init__.py", line 36, in oauth_headers
    assert isinstance(url, unicode)
AssertionError
2011-08-17 21:19:28,043:43.9999103546 - ubuntu_sso.credentials - ERROR - _ping_url (app_name: Ubuntu One): Calling error_cb at <bound method Credentials.error_cb of <ubuntu_sso.credentials.Credentials object at 0x03571950>>.
2011-08-17 21:19:28,046:46.0000038147 - ubuntu_sso.credentials - ERROR - Calling error callback at <bound method CredentialsManagement.emit_credentials_error of <ubuntu_sso.main.windows.CredentialsManagement object at 0x03471470>> (error is {'error_message': 'Problem opening the ping_url', 'detailed_error': 'Traceback
(most recent call last):\n File "C:\\Users\\ROBERTO\\canonical\\error_message_key\\ubuntu_sso\\credentials.py", line 116, in inner\n result = yield f(self,
*a, **kw)\n File "C:\\Python27\\lib\\site-packages\\twisted\\internet\\defer.py", line 1141, in unwindGenerator\n return _inlineCallbacks(None, f(*args, **kwargs), Deferred())\n File "C:\\Users\\ROBERTO\\canonical\\error_message_key\\ubuntu_sso\\credentials.py", line 240, in _ping_url\n headers = utils.oauth_headers(url, credentials)\n File "C:\\Users\\ROBERTO\\canonical\\error_message_key\\ubuntu_sso\\utils\\__init__.py", line 36, in oauth_headers\n assert isinstance(url, unicode)\nAssertionError\n'}).
2011-08-17 21:19:28,046:46.9999313354 - ubuntu_sso.main - DEBUG - ref_count is 1, changing value to 0.
2011-08-17 21:19:28,046:46.9999313354 - ubuntu_sso.main - DEBUG - Setting up timer with <function add_timeout at 0x0341D4B0> (10000000000L, <bound method CredentialsManagementRoot.shutdown of <ubuntu_sso.main.CredentialsManagementRoot object at 0x03471490>>).
2011-08-17 21:19:28,048:48.0000972748 - ubuntu_sso.main.windows - ERROR - CredentialsManagement: emitting CredentialsError with app_name "Ubuntu One" and error_dict {'error_message': 'Problem opening the ping_url', 'detailed_error': 'Traceback (most recent call last):\n File "C:\\Users\\ROBERTO\\canonical\\error_message_key\\ubuntu_sso\\credentials.py", line 116, in inner\n result = yield f(self, *a, **kw)\n File "C:\\Python27\\lib\\site-packages\\twisted\\internet\\defer.py", line 1141, in unwindGenerator\n return _inlineCallbacks(None, f(*args, **kwargs), Deferred())\n File "C:\\Users\\ROBERTO\\canonical\\error_message_key\\ubuntu_sso\\credentials.py", line 240, in _ping_url\n headers = utils.oauth_headers(url, credentials)\n File "C:\\Users\\ROBERTO\\canonical\\error_message_key\\ubuntu_sso\\utils\\__init__.py", line 36, in oauth_headers\n assert isinstance(url, unicode)\nAssertionError\n'}.

Related branches

Roberto Alsina (ralsina)
Changed in ubuntu-sso-client:
status: New → Triaged
importance: Undecided → Critical
assignee: nobody → Natalia Bidart (nataliabidart)
Roberto Alsina (ralsina)
description: updated
Changed in ubuntu-sso-client:
status: Triaged → In Progress
Changed in ubuntu-sso-client:
status: In Progress → Fix Committed
dobey (dobey)
affects: ubuntu-sso-client → ubuntuone-client
dobey (dobey)
Changed in ubuntuone-client:
milestone: none → 1.7.2
tags: added: u1-windows
dobey (dobey)
Changed in ubuntuone-client:
status: Fix Committed → Fix Released
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.