← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1567977] Re: POST /servers with incorrect content-type returns 400, should be 415

 

** Also affects: nova/liberty
   Importance: Undecided
       Status: New

** Also affects: nova/mitaka
   Importance: Undecided
       Status: New

** Changed in: nova/liberty
       Status: New => Confirmed

** Changed in: nova/mitaka
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1567977

Title:
  POST /servers with incorrect content-type returns 400, should be 415

Status in OpenStack Compute (nova):
  In Progress
Status in OpenStack Compute (nova) liberty series:
  Confirmed
Status in OpenStack Compute (nova) mitaka series:
  Confirmed

Bug description:
  (master nova april 8, 2016)

  POSTing to /servers with a content-type of text/plain and a text/plain
  body results in a response code of 400. This is incorrect. It should
  be 415: <https://httpstatuses.com/415>

  Here's the gabbi demo:

  - name: post bad content-type
    xfail: True
    POST: /servers
    request_headers:
        content-type: text/plain
    data: I want a server so badly
    status: 415

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


References