[Bug 1401544] Re: lazr.restfulclient using lowercase get in HTTP request
Launchpad Bug Tracker
1401544 at bugs.launchpad.net
Thu Dec 18 17:36:12 UTC 2014
This bug was fixed in the package lazr.restfulclient - 0.9.11-1ubuntu1.4
---------------
lazr.restfulclient (0.9.11-1ubuntu1.4) lucid; urgency=medium
* Always uppercase HTTP methods to match httplib2 expectations
(LP: #1401544).
-- Colin Watson <cjwatson at ubuntu.com> Thu, 11 Dec 2014 16:30:02 +0000
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to lazr.restfulclient in Ubuntu.
https://bugs.launchpad.net/bugs/1401544
Title:
lazr.restfulclient using lowercase get in HTTP request
Status in lazr.restfulclient:
Fix Released
Status in lazr.restfulclient package in Ubuntu:
Fix Released
Status in lazr.restfulclient source package in Lucid:
Fix Released
Status in lazr.restfulclient source package in Precise:
Fix Released
Bug description:
http://tools.ietf.org/html/rfc2616#section-5.1.1 specifies that
methods in HTTP are case sensitive.
Some server implementations may be graceful about this (e.g. apache),
others may enforce the specification.
All the other methods are written in uppercase, so I suggest to bring
GET in line as well.
Test case: Install python-launchpadlib, then run this at a Python
prompt:
>>> import httplib2
>>> httplib2.debuglevel = 1
>>> from launchpadlib.launchpad import Launchpad
>>> lp = Launchpad.login_anonymously("test", "production")
>>> lp.distributions["ubuntu"].getSeries(name_or_version="vivid")
If this bug is present, then the debug output from the last statement
will include a line starting with "send: 'get
/1.0/ubuntu?ws.op=getSeries"; the fix corrects the GET to be
capitalised.
To manage notifications about this bug go to:
https://bugs.launchpad.net/lazr.restfulclient/+bug/1401544/+subscriptions
More information about the foundations-bugs
mailing list