POSTing to /servers with a content-type of text/plain
and a text/plain body results in a response code of 400.
It should be 415. I found this line in the code that
appears to handle this singular case and modified
the HTTP exception used to the correct one. Tests were
also updated accordingly.
Reviewed: https:/ /review. openstack. org/304958 /git.openstack. org/cgit/ openstack/ nova/commit/ ?id=a7019a87ba6 96509d825c6c6f2 220331e4ffb033
Committed: https:/
Submitter: Jenkins
Branch: master
commit a7019a87ba69650 9d825c6c6f22203 31e4ffb033
Author: Brandon Irizarry <email address hidden>
Date: Wed Apr 13 05:18:25 2016 +0000
Changed an HTTP exception to return proper code
POSTing to /servers with a content-type of text/plain
and a text/plain body results in a response code of 400.
It should be 415. I found this line in the code that
appears to handle this singular case and modified
the HTTP exception used to the correct one. Tests were
also updated accordingly.
Change-Id: I5fa1fdba56803b 2ef63b1efaaeece d6ceb7779d9
Closes-Bug: 1567977