[nightlies] oauthlib expects unicode values, int(timestamp) breaks webclient
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Ubuntu Single Sign On Client | Status tracked in Trunk | |||||
Stable-4-2 |
Fix Released
|
Undecided
|
Unassigned | |||
Trunk |
Fix Released
|
High
|
dobey |
Bug Description
STR:
1. Start ubuntuone-
Expected results:
It starts and displays data
Actual results:
It starts and hangs in "Loading informaiton" state.
The terminal has the following output:
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
current.result = callback(
File "/usr/lib/
_inlineCall
--- <exception caught here> ---
File "/usr/lib/
result = result.
[...]
File "/usr/lib/
return g.throw(self.type, self.value, self.tb)
File "/usr/lib/
oauth_
File "/usr/lib/
result = g.send(result)
File "/usr/lib/
as_query=False)
File "/usr/lib/
{'Content-
File "/usr/lib/
request.
File "/usr/lib/
uri, headers, body = self._render(
File "/usr/lib/
headers = parameters.
File "/usr/lib/
return target(params, *args, **kwargs)
File "/usr/lib/
escaped_value = utils.escape(value)
File "/usr/lib/
raise ValueError('Only unicode objects are escapable.')
exceptions.
I dumped the value and parameters:
Name: u'oauth_nonce', value: u'1495397232770
Name: u'oauth_timestamp', value: 1360757946
The int timestamp is created in ubuntu_
Also note that since LP 872499 we are no longer checking the timestamps so it may be time to get rid of that code and simplify the timestamp creation.
Related branches
- Diego Sarmentero (community): Approve
- Roberto Alsina (community): Approve
-
Diff: 21 lines (+3/-1)1 file modifiedubuntu_sso/utils/webclient/common.py (+3/-1)
Changed in ubuntu-sso-client: | |
assignee: | nobody → Ubuntu One Client Engineering team (ubuntuone-client-engineering) |
importance: | Undecided → High |
status: | New → Triaged |
tags: | added: u1-by-dev u1-on-staging |