v2 API responce doesn't follow documentation for not defined values
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Invalid
|
Undecided
|
Unassigned | ||
openstack-api-site |
Fix Released
|
Undecided
|
Ilya Sviridov |
Bug Description
Calling image list functionality for v2 API the JSON null value is returned for not defined fields in response, instead expecting string 'None' according to documentation http://
"If this field has no value, its value is None. "
Glance code revision:
ubuntu@
commit fbb5e1c44093386
Merge: aeb3c6a 643ad31
Author: Jenkins <email address hidden>
Date: Wed Jul 15 00:10:28 2015 +0000
Merge "Purge dead file-backed scrubber queue code"
Request:
http://
Response:
{
"images": [
{
"name": "TestImage",
"tags": [],
"size": null,
"self": "/v2/images/
"id": "147824e3-
"file": "/v2/images/
},
{
"name": "TestImage",
"tags": [],
"size": null,
"self": "/v2/images/
"id": "bc952044-
"file": "/v2/images/
},
{
"name": "TestImage",
"tags": [],
"size": null,
"self": "/v2/images/
"id": "0307f138-
"file": "/v2/images/
},
{
"file": "/v2/images/
"id": "c77a2e19-
"size": 12501760,
"self": "/v2/images/
"tags": [],
"name": "test-image",
},
{
"name": "cirros-
"tags": [],
"self": "/v2/images/
"id": "07aa21a9-
"size": 25165824,
"file": "/v2/images/
},
{
"name": "cirros-
"tags": [],
"size": 3740163,
"self": "/v2/images/
"id": "8c64f48a-
"file": "/v2/images/
},
{
"name": "cirros-
"tags": [],
"size": 4979632,
"self": "/v2/images/
"id": "e1b6edd4-
"file": "/v2/images/
}
],
"schema": "/v2/schemas/
"first": "/v2/images?
}
Changed in openstack-api-site: | |
assignee: | nobody → Ilya Sviridov (isviridov) |
I think this is a case of the documentation being wrong. I think the docs should say 'null'.