webclient with libsoup backend is not reading the whole body response

Bug #921822 reported by Natalia Bidart
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Single Sign On Client
Status tracked in Trunk
Fix Released
Fix Released
Alejandro J. Cura

Bug Description

An example is the captcha download, which gets truncated if using the libsoup backend as is.

Related branches

Revision history for this message
Natalia Bidart (nataliabidart) wrote :
Revision history for this message
Natalia Bidart (nataliabidart) wrote :

A few comments from alecu regarding the patch:

(05:55:01 PM) alecu: nessita, btw: I'm taking a look at your libsoup sample, and I think it's fine, but it may explode
(05:55:18 PM) nessita: alecu: in which case?
(05:55:41 PM) alecu: nessita, since get_chunk may return None when there's more bytes coming, but they still have not arrived.
(05:55:47 PM) alecu: nessita, slow network for instance
(05:56:22 PM) alecu: nessita, it looks like we should be listening for a signal named "complete" to know when to fire the deferred.
(05:57:19 PM) alecu: nessita, I think we should be reading the chunks into a StringIO or something like that.

Changed in ubuntu-sso-client:
assignee: nobody → Alejandro J. Cura (alecu)
importance: Undecided → High
status: New → Triaged
Changed in ubuntu-sso-client:
status: Triaged → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers