← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1213106] Re: TypeError: an integer is required

 

The old code without the fix is in oslo.middleware . Ran into this when
trying to change Keystone to use oslo.middleware:
http://logs.openstack.org/97/144697/1/check/check-tempest-dsvm-
full/4a13e44/logs/apache/keystone.txt.gz#_2015-01-01_23_57_43_514 for
https://review.openstack.org/#/c/144697/

I ported the fix to oslo.middleware:
https://review.openstack.org/#/c/144700/


** Also affects: oslo.middleware
   Importance: Undecided
       Status: New

** Changed in: oslo.middleware
     Assignee: (unassigned) => Brant Knudson (blk-u)

** Changed in: oslo.middleware
       Status: New => In Progress

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Keystone.
https://bugs.launchpad.net/bugs/1213106

Title:
  TypeError: an integer is required

Status in OpenStack Identity (Keystone):
  Fix Released
Status in Oslo WSGI middleware library:
  In Progress

Bug description:
  2013-08-16 13:20:10    ERROR [keystone.common.wsgi] an integer is required
  Traceback (most recent call last):
    File "/opt/keystone/keystone/common/wsgi.py", line 372, in __call__
      response = self.process_request(request)
    File "/opt/keystone/keystone/middleware/core.py", line 111, in process_request
      params_json = request.body
    File "/usr/lib/python2.7/dist-packages/webob/request.py", line 677, in _body__get
      self.make_body_seekable() # we need this to have content_length
    File "/usr/lib/python2.7/dist-packages/webob/request.py", line 922, in make_body_seekable
      self.copy_body()
    File "/usr/lib/python2.7/dist-packages/webob/request.py", line 938, in copy_body
      self.body = self.body_file_raw.read()
    File "/opt/keystone/keystone/common/utils.py", line 261, in read
      result = self.data.read(i)
  TypeError: an integer is required

To manage notifications about this bug go to:
https://bugs.launchpad.net/keystone/+bug/1213106/+subscriptions