OSAPI: POST to servers metadata does not respect Accept header
Bug #795045 reported by
Brian Waldon
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Medium
|
William Wolf |
Bug Description
If I do a curl request to set new metadata on a specific server, the response content-type is text/html and the body is actually json-encoded. I would expect to get a properly-formatted xml response. This is not a problem on a GET to the same url with an xml accept header.
curl -X POST -H "Content-Type: application/json" -d '{"metadata"
< HTTP/1.1 200 OK
< Content-Type: text/html; charset=UTF-8
< Content-Length: 26
< Date: Thu, 09 Jun 2011 13:43:42 GMT
<
* Connection #0 to host localhost left intact
* Closing connection #0
{"metadata"
Related branches
lp:~rackspace-titan/nova/lp795045
- Brian Lamar (community): Approve
- Devin Carlen (community): Approve
-
Diff: 112 lines (+34/-2)2 files modifiednova/api/openstack/server_metadata.py (+9/-2)
nova/tests/api/openstack/test_server_metadata.py (+25/-0)
Changed in nova: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in nova: | |
assignee: | nobody → William Wolf (throughnothing) |
Changed in nova: | |
status: | Confirmed → Fix Committed |
Changed in nova: | |
milestone: | none → diablo-2 |
Changed in nova: | |
milestone: | diablo-2 → 2011.3 |
status: | Fix Committed → Fix Released |
To post a comment you must log in.