Non-successful HTTP code responses are handled incorrectly and returns code 500
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
masakari |
Fix Released
|
Medium
|
Mitya Eremeev | ||
Ussuri |
Fix Committed
|
Medium
|
Unassigned | ||
Victoria |
Fix Committed
|
Medium
|
Unassigned | ||
Wallaby |
Fix Committed
|
Medium
|
Unassigned | ||
Xena |
Fix Released
|
Medium
|
Mitya Eremeev |
Bug Description
Tested for master and victoria.
1. Send malformed API request:
$ openstack notification create VM test 2016-01-
Actual behavior:
response:
HttpException: 500: Server Error for url: http://
service logs:
2021-06-09 10:16:15,745.745 14 ERROR masakari.
2021-06-09 10:16:15,745.745 14 ERROR masakari.
2021-06-09 10:16:15,745.745 14 ERROR masakari.
2021-06-09 10:16:15,745.745 14 ERROR masakari.
2021-06-09 10:16:15,745.745 14 ERROR masakari.
2021-06-09 10:16:15,745.745 14 ERROR masakari.
2021-06-09 10:16:15,745.745 14 ERROR masakari.
2021-06-09 10:16:15,745.745 14 ERROR masakari.
2021-06-09 10:16:15,745.745 14 ERROR masakari.
2021-06-09 10:16:15,745.745 14 ERROR masakari.
2021-06-09 10:16:15,758.758 14 INFO masakari.
expected behavior:
API response:
BadRequestExcep
Changed in masakari: | |
assignee: | nobody → Mitya Eremeev (mitos) |
status: | In Progress → New |
status: | New → In Progress |
Changed in masakari: | |
importance: | Undecided → Medium |
Fix proposed to branch: master /review. opendev. org/c/openstack /masakari/ +/796732
Review: https:/