add_bgp_peer without bgp_beer_id key is returned with 500 error

Bug #1593050 reported by Kengo Hobo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
networking-midonet
Fix Released
Low
Kengo Hobo

Bug Description

It should be returned with 400 error.

Here is error detail.
[root@az2-controller ~]# curl -g -i -X PUT http://192.168.21.120:9696/v2.0/bgp-speakers/7bf585bd-e939-4cfd-a793-4ad3ba901c56/add_bgp_peer -H "Content-Type: application/json" -H "X-Auth-Token: $TOKEN" -d '{}'
HTTP/1.1 500 Internal Server Error
Content-Type: application/json; charset=UTF-8
Content-Length: 150
X-Openstack-Request-Id: req-09ed1bd3-0c0a-4181-945f-5ed0f3513bb6
Date: Thu, 16 Jun 2016 03:18:08 GMT

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

Kengo Hobo (hobo-kengo)
Changed in networking-midonet:
assignee: nobody → Kengo Hobo (hobo-kengo)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to networking-midonet (master)

Fix proposed to branch: master
Review: https://review.openstack.org/330676

Changed in networking-midonet:
status: New → In Progress
Changed in networking-midonet:
importance: Undecided → Low
milestone: none → 2.0.0
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to networking-midonet (master)

Reviewed: https://review.openstack.org/330676
Committed: https://git.openstack.org/cgit/openstack/networking-midonet/commit/?id=5d75ac9978065644e454aea8a0357c7d04f87935
Submitter: Jenkins
Branch: master

commit 5d75ac9978065644e454aea8a0357c7d04f87935
Author: hobo.kengo <email address hidden>
Date: Thu Jun 16 15:37:01 2016 +0000

    Add validation for bgp_peer_id in add_bgp_peer

    Change-Id: I904252139476ba99c00666ed21d3977cbd50db2d
    Closes-Bug: #1593050

Changed in networking-midonet:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.