Comment 4 for bug 353805

Revision history for this message
Leonard Richardson (leonardr) wrote :

Obviously launchpadlib should not be running binary data through simplejson. The question is how launchpadlib is supposed to know that binary data is appropriate for that particular argument, 'data'.

The 'data' argument is published as an IBytes field in Launchpad. If the WADL for that field specified its type as 'binary', launchpadlib and wadllib could be programmed to handle it correctly. We'd probably have to change lazr.restful, wadllib, and lazr.restfulclient, but all of the changes would be fairly small. I'd prefer to wait on this until we have the lazr.restful and lazr.restfulclient separations complete.