← Back to team overview

yahoo-eng-team team mailing list archive

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

 

Public bug reported:

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.

** Affects: nova
     Importance: Undecided
         Status: New

-- 
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):
  New

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


Follow ups

References