← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1379973] Re: REST API didn't verify json data format

 

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

** Changed in: nova
    Milestone: None => kilo-1

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

Title:
  REST API didn't verify json data format

Status in OpenStack Compute (Nova):
  Fix Released

Bug description:
  When try to create a server with REST API, I set attribute block_device_mapping with wrong value, not a list<dict> but a string (from "block_device_mapping": [{"volume_id": "1", "delete_on_termination": "0", "device_name": "/dev/vdb"}] to "block_device_mapping": "abc",). And then I got a response with code 500.
  In nova CLI, when params are wrong you will get a notice, but in REST you get nothing.
  If openstack use json schema to describe every REST API and verify json requested , users can easily know how to use these API and which attribute was wrong.

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


References