← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1476695] [NEW] Invalid body in image creation causes 500

 

Public bug reported:

Overview:
When creating an image the user either puts a number as the body or sends some type of string will cause the server to fall over due to a type error.

How to produce:
curl -X POST http://your-ip:9292/v2/images/ -H "X-Auth-Token: your-auth-token" -d 123

Rather than a number lots of inputs can cause the type error to be
thrown such as '[]' or '["some text"]'.

Actual:
500

Expected:
400 with body invalid message.

** Affects: glance
     Importance: Undecided
     Assignee: Niall Bunting (niall-bunting)
         Status: New

** Changed in: glance
     Assignee: (unassigned) => Niall Bunting (niall-bunting)

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

Title:
  Invalid body in image creation causes 500

Status in Glance:
  New

Bug description:
  Overview:
  When creating an image the user either puts a number as the body or sends some type of string will cause the server to fall over due to a type error.

  How to produce:
  curl -X POST http://your-ip:9292/v2/images/ -H "X-Auth-Token: your-auth-token" -d 123

  Rather than a number lots of inputs can cause the type error to be
  thrown such as '[]' or '["some text"]'.

  Actual:
  500

  Expected:
  400 with body invalid message.

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