Comment 10 for bug 1567977

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (stable/liberty)

Reviewed: https://review.openstack.org/308823
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=f6f0d1bae8b67c2d8617f87dbc453a60943883c3
Submitter: Jenkins
Branch: stable/liberty

commit f6f0d1bae8b67c2d8617f87dbc453a60943883c3
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.

    Conflicts:
            nova/api/openstack/wsgi.py
            nova/tests/unit/api/openstack/compute/legacy_v2/test_servers.py

    Change-Id: I5fa1fdba56803b2ef63b1efaaeeced6ceb7779d9
    Closes-Bug: 1567977
    (cherry picked from commit a7019a87ba696509d825c6c6f2220331e4ffb033)