← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1249501] Re: Glance assumes any request with transfer-encoding header has a request body

 

** Changed in: glance
       Status: Fix Committed => Fix Released

** Changed in: glance
    Milestone: None => kilo-3

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

Title:
  Glance assumes any request with transfer-encoding header has a request
  body

Status in OpenStack Image Registry and Delivery Service (Glance):
  Fix Released

Bug description:
  Transfer-encoding header should be ignored when the request has no
  body and is not streaming data.

  
  glance/common/wsgi.py

  526         if 'transfer-encoding' in request.headers:
  527             return True

  curl -i -X GET -H "Content-Type: application/json" -H "X-Auth-Token:
  $AUTH_TOKEN" http://localhost:9292/v2/images/ef4570bf-2e26-4921-810a-
  5f8499e9822f -H "Transfer-encoding: chunked"

  HTTP/1.1 400 Bad Request
  Content-Length: 160
  Content-Type: text/html; charset=UTF-8
  X-Openstack-Request-Id: req-12d0cb51-f36a-4410-9cda-b91453cb1158
  Date: Fri, 08 Nov 2013 21:38:26 GMT

  <html>
   <head>
    <title>400 Bad Request</title>
   </head>
   <body>
    <h1>400 Bad Request</h1>
    Malformed JSON in request body: ||<br /><br />


   </body>
  </html>

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