[Bug 1401544] Re: lazr.restfulclient using lowercase get in HTTP request

James Troup james.troup at canonical.com
Mon Dec 15 23:42:53 UTC 2014


I can confirm 0.12.0-1ubuntu1.2 fixed the problem for us.

** Tags removed: verification-needed
** Tags added: verification-done

-- 
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 Committed
Status in lazr.restfulclient source package in Precise:
  Fix Committed

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