Package: python-launchpadlib
Severity: important
X-Debbugs-CC: [email protected]
thanks

Howdy!

wiki.d.o recently hit a production issue that was caused from empty
cache entries breaking the JSON seralizer (empty payload). 

Here's an example:

$ grep "content-length: 0" * -r
wiki-launchpad-cache/api.launchpad.net,1.0,ubuntu,+source,gmp-application,json,20c3712ee65d640c85e85a026dfae754:content-length:
 0


The whole file:

    status: 200
    -varied-accept: application/json
    content-length: 0
    via: 1.1 api.launchpad.net
    content-location: https://api.launchpad.net/1.0/ubuntu/+source/gmp
    x-content-type-options: nosniff
    x-powered-by: Zope (www.zope.org), Python (www.python.org)
    strict-transport-security: max-age=2592000
    vary: Accept,Accept-Encoding
    server: zope.server.http (HTTP)
    date: Fri, 15 Feb 2013 01:13:02 GMT
    x-xss-protection: 1; mode=block
    etag: 
"8d3e597ea9ab6ef89ff1cedb3496ad1735bf02f2-2b7eb24573dc41358740628871cdf5a50c74176c"
    -varied-accept-encoding: gzip, deflate
    x-frame-options: SAMEORIGIN
    x-lazr-notifications: []
    content-type: application/json
    -content-encoding: gzip
    -varied-accept: application/json
    -varied-accept-encoding: gzip, deflate
    

It would be nice for three things to happen:

 1) Launchpad aught to not return such things
 2) launchpadlib aught not to cache such responses
 3) launchpadlib aught not to crash on such entries from cache

Thanks for your hard work,
  Paul

-- 
 .''`.  Paul Tagliamonte <[email protected]>
: :'  : Proud Debian Developer
`. `'`  4096R / 8F04 9AD8 2C92 066C 7352  D28A 7B58 5B30 807C 2A87
 `-     http://people.debian.org/~paultag

Attachment: signature.asc
Description: Digital signature

Reply via email to