Request deserializer does not pass an empty body

Bug #960487 reported by Craig Vyvial
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-common
Invalid
Wishlist
Craig Vyvial

Bug Description

When a POST is sent via an API call and the body is empty the body is lost and not sent along and sending back a general 400 error.

This should send a body even if it is empty to the method in the route specified.
The common/wsgi.py Request deserializer for the body needs an update so that this is possible.

This will allow the API developer to create a validation message to the client with what is invalid in the body of the action.

Craig Vyvial (cp16net)
Changed in openstack-common:
assignee: nobody → cp16net (cp16net)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-common (master)

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

Changed in openstack-common:
assignee: cp16net (cp16net) → Craig Vyvial (cp16net-gmail)
status: New → In Progress
Craig Vyvial (cp16net)
Changed in openstack-common:
status: In Progress → Fix Committed
Mark McLoughlin (markmc)
Changed in openstack-common:
status: Fix Committed → In Progress
Revision history for this message
Mark McLoughlin (markmc) wrote :

Ok, based on Brian Waldon's comment in the review I'm going to close this

Changed in openstack-common:
status: In Progress → Invalid
importance: Undecided → Wishlist
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.