← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1780327] [NEW] Send a POST request with invalid object in body return 500

 

Public bug reported:

This is an edge case that neutron server should return 400 response, but
actually it returned 500

To reproduce:

  $ curl -g -i -X POST "http://localhost:9696/v2.0/networks"; \
  >     -H "Accept: application/json" -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" \
  >     -d '{"network": "webservers"}'
  HTTP/1.1 500 Internal Server Error
  Content-Type: application/json
  Content-Length: 150
  X-Openstack-Request-Id: req-78b967c0-1f30-4e64-9b1c-1d68e019a835
  Date: Thu, 05 Jul 2018 20:43:22 GMT

  {"NeutronError": {"message": "Request Failed: internal server error
while processing your request.", "type": "HTTPInternalServerError",
"detail": ""}}

** Affects: neutron
     Importance: Undecided
     Assignee: Hongbin Lu (hongbin.lu)
         Status: New

** Changed in: neutron
     Assignee: (unassigned) => Hongbin Lu (hongbin.lu)

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

Title:
  Send a POST request with invalid object in body return 500

Status in neutron:
  New

Bug description:
  This is an edge case that neutron server should return 400 response,
  but actually it returned 500

  To reproduce:

    $ curl -g -i -X POST "http://localhost:9696/v2.0/networks"; \
    >     -H "Accept: application/json" -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" \
    >     -d '{"network": "webservers"}'
    HTTP/1.1 500 Internal Server Error
    Content-Type: application/json
    Content-Length: 150
    X-Openstack-Request-Id: req-78b967c0-1f30-4e64-9b1c-1d68e019a835
    Date: Thu, 05 Jul 2018 20:43:22 GMT

    {"NeutronError": {"message": "Request Failed: internal server error
  while processing your request.", "type": "HTTPInternalServerError",
  "detail": ""}}

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


Follow ups