Request body element name existence check and error message is not consistent across all apis

Bug #1461402 reported by Abhijeet Malawade
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Released
Undecided
Abhijeet Malawade

Bug Description

All different variations of error messages sent to the user are listed below:

1. Missing required element '<element name>' in request body.
2. Bad Request
3. Update body is not valid, It must contain '<element name>'.
4. Incorrect request body format
5. Create body is not valid

IMO, the error message must be meaningful.
Error message should be "Missing required element '<element name>' in request body."

Changed in cinder:
assignee: nobody → Abhijeet Malawade (abhijeet-malawade)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

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

Changed in cinder:
status: New → In Progress
Changed in cinder:
status: In Progress → Fix Committed
Changed in cinder:
milestone: none → liberty-2
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in cinder:
milestone: liberty-2 → 7.0.0
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.