Create port API with invalid value returns 500(Internal Server Error)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
neutron |
Fix Released
|
Medium
|
Kevin Benton | ||
Kilo |
New
|
Undecided
|
Unassigned |
Bug Description
I executed "POST /v2.0/ports" with invalid value like a "null" as the parameter "allowed_
Then Neutron Server returned 500(Internal Server Error).
I expected Neutron Server just returns 400(Bad Request).
API Result and Logs are as follows.
[API Result]
stack@ubuntu:~/deg$ curl -g -i -X POST -H "Content-Type: application/json" -H "X-Auth-Token: ${token}" http://
HTTP/1.1 500 Internal Server Error
Content-Type: application/json; charset=UTF-8
Content-Length: 150
X-Openstack-
Date: Thu, 23 Jul 2015 09:35:26 GMT
{"NeutronError": {"message": "Request Failed: internal server error while processing your request.", "type": "HTTPInternalSe
[Neutron Server Log]
2015-07-23 18:35:26.373 DEBUG neutron.api.v2.base [req-f44e7756-
2015-07-23 18:35:26.376 ERROR neutron.
2015-07-23 18:35:26.376 TRACE neutron.
2015-07-23 18:35:26.376 TRACE neutron.
2015-07-23 18:35:26.376 TRACE neutron.
2015-07-23 18:35:26.376 TRACE neutron.
2015-07-23 18:35:26.376 TRACE neutron.
2015-07-23 18:35:26.376 TRACE neutron.
2015-07-23 18:35:26.376 TRACE neutron.
2015-07-23 18:35:26.376 TRACE neutron.
2015-07-23 18:35:26.376 TRACE neutron.
2015-07-23 18:35:26.376 TRACE neutron.
2015-07-23 18:35:26.376 TRACE neutron.
2015-07-23 18:35:26.376 TRACE neutron.
2015-07-23 18:35:26.376 TRACE neutron.
2015-07-23 18:35:26.376 TRACE neutron.
2015-07-23 18:35:26.376 TRACE neutron.
2015-07-23 18:35:26.376 TRACE neutron.
2015-07-23 18:35:26.376 TRACE neutron.
Changed in neutron: | |
assignee: | nobody → Koichi Miura (miura-koichi) |
Changed in neutron: | |
assignee: | Kevin Benton (kevinbenton) → Sean Dague (sdague) |
Changed in neutron: | |
assignee: | Sean Dague (sdague) → Kevin Benton (kevinbenton) |
Changed in neutron: | |
assignee: | Kevin Benton (kevinbenton) → Armando Migliaccio (armando-migliaccio) |
Changed in neutron: | |
milestone: | none → liberty-rc1 |
assignee: | Armando Migliaccio (armando-migliaccio) → Kevin Benton (kevinbenton) |
importance: | Undecided → Medium |
Changed in neutron: | |
status: | Fix Committed → Fix Released |
Changed in neutron: | |
milestone: | liberty-rc1 → 7.0.0 |
Fix proposed to branch: master /review. openstack. org/218472
Review: https:/