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

Colin Watson cjwatson at canonical.com
Thu Dec 11 16:42:53 UTC 2014


** Description changed:

  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 this to be capitalised.

** Changed in: lazr.restfulclient (Ubuntu Lucid)
       Status: New => In Progress

** Changed in: lazr.restfulclient (Ubuntu Lucid)
   Importance: Undecided => High

** Changed in: lazr.restfulclient (Ubuntu Lucid)
     Assignee: (unassigned) => Colin Watson (cjwatson)

** Changed in: lazr.restfulclient (Ubuntu Precise)
       Status: New => In Progress

** Changed in: lazr.restfulclient (Ubuntu Precise)
   Importance: Undecided => High

** Changed in: lazr.restfulclient (Ubuntu Precise)
     Assignee: (unassigned) => Colin Watson (cjwatson)

** Description changed:

  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 this to be capitalised.
+ /1.0/ubuntu?ws.op=getSeries"; the fix corrects the GET to be
+ capitalised.

-- 
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