Header with accept != "application/json"

Bug #1177947 reported by Malini Kamalambal
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zaqar
Fix Released
Medium
Zhihao Yuan

Bug Description

Steps to Repro:

Send a request with header value 'accept = "application/text"'

eg.

PUT http://0.0.0.0:8888/v1/1/queues/createqueue
 header: {"Host":"marconi.test.com","User-Agent":"systemtests","Date":"<DATE>","Accept": "text/plain","Accept-Encoding": "gzip","X-Auth-Token": "notrealtoken"}
 text: {"TOPLEVEL": {"ttl": 86400}}

ExpectedResponse Code: 406

 Actual Response: 204
 Actual Response Headers {'date': 'Wed, 08 May 2013 19:37:16 GMT', 'connection': 'close', 'location': '/v1/1/queues/createqueue', 'server': 'gunicorn/0.17.4'}

Changed in marconi:
status: New → Confirmed
Kurt Griffiths (kgriffs)
Changed in marconi:
importance: Undecided → Medium
Revision history for this message
Zhihao Yuan (zyuan) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to marconi (master)

Reviewed: https://review.openstack.org/37306
Committed: http://github.com/stackforge/marconi/commit/4fc292513d822a36db0794042c3dd8bd7c0d9ad7
Submitter: Jenkins
Branch: master

commit 4fc292513d822a36db0794042c3dd8bd7c0d9ad7
Author: Zhihao Yuan <email address hidden>
Date: Mon Jul 15 14:08:27 2013 -0400

    feat(wsgi): check for client media type support

    Change-Id: I2c473bb158c68fe87671e4dea19f9063e33b3f58
    Fixes: bug #1177947

Changed in marconi:
status: Confirmed → Fix Committed
Changed in marconi:
assignee: nobody → Zhihao Yuan (zyuan)
milestone: none → havana-3
status: Fix Committed → Fix Released
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.