Merge lp://qastaging/~cmiller/desktopcouch/check-http-status-on-api into lp://qastaging/desktopcouch
Proposed by
Chad Miller
Status: | Merged |
---|---|
Approved by: | Chad Miller |
Approved revision: | 265 |
Merged at revision: | 265 |
Proposed branch: | lp://qastaging/~cmiller/desktopcouch/check-http-status-on-api |
Merge into: | lp://qastaging/desktopcouch |
Diff against target: |
43 lines (+14/-13) 1 file modified
desktopcouch/application/replication_services/ubuntuone.py (+14/-13) |
To merge this branch: | bzr merge lp://qastaging/~cmiller/desktopcouch/check-http-status-on-api |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Eric Casteleijn (community) | Approve | ||
Natalia Bidart (community) | Approve | ||
Review via email:
|
Commit message
Use urllib2, which seperates reading response code from reading content, instead of httplib2, which doesn't. httplib(2) insists that the Content-Length header match the actual length, and Ubuntu One's middleware may change the content in transit. (LP: #711208)
To post a comment you must log in.
I'm getting this traces while running the tests:
Traceback (most recent call last): nessita/ canonical/ desktopcouch/ review_ check-http- status- on-api/ desktopcouch/ application/ plugins/ ubuntuone_ pairing. py", line 90, in listen_to_dbus interface= iface) pymodules/ python2. 6/dbus/ bus.py" , line 151, in add_signal_receiver pymodules/ python2. 6/dbus/ connection. py", line 382, in add_signal_receiver _require_ main_loop( ) default_ main_loop( ...)
File "/home/
dbus_
File "/usr/lib/
path, **keywords)
File "/usr/lib/
self.
RuntimeError: To make asynchronous calls, receive signals or export objects, D-Bus connections must be attached to a main loop by passing mainloop=... to the constructor or calling dbus.set_