python-novaclient does not send an Accept header when authentication with KeyStone

Bug #904436 reported by justinsb on 2011-12-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
Low
Matt Stephenson

Bug Description

When authenticating with keystone, the python novaclient does not send an Accept header. Some KeyStone implementations may choose to deliver XML in response.

It should send add a header like Accept: application/json

e.g.

POST /v2.0/tokens HTTP/1.1
Host: 192.168.2.99:5000
Content-Length: 112
content-type: application/json
accept-encoding: gzip, deflate
user-agent: python-novaclient

{"auth": {"tenantName": "novaadmin", "passwordCredentials": {"username": "novaadmin", "password": "secret"}}}

Thierry Carrez (ttx) on 2011-12-21
Changed in nova:
importance: Undecided → Low
status: New → Confirmed
tags: added: python-novaclient
Changed in nova:
assignee: nobody → Matt Stephenson (mattstep)

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

Changed in nova:
status: Confirmed → In Progress
Brian Waldon (bcwaldon) on 2012-02-03
Changed in nova:
milestone: none → essex-4

Reviewed: https://review.openstack.org/3727
Committed: http://github.com/openstack/python-novaclient/commit/fe4fa9daef26508c1e614e0a570b32e03821ee88
Submitter: Jenkins
Branch: master

commit fe4fa9daef26508c1e614e0a570b32e03821ee88
Author: Matt Stephenson <email address hidden>
Date: Thu Feb 2 16:37:55 2012 -0800

    Add Accept: applicaton/json header to all service requests. Fixes bug 904436

    Change-Id: I5f7c78f0ea516a7a96c32b1f745686e130c2b9af

Changed in nova:
status: In Progress → Fix Committed
Thierry Carrez (ttx) on 2012-02-29
Changed in nova:
status: Fix Committed → Fix Released
Thierry Carrez (ttx) on 2012-04-05
Changed in nova:
milestone: essex-4 → 2012.1
Thierry Carrez (ttx) on 2012-07-04
affects: nova → python-novaclient
Changed in python-novaclient:
milestone: 2012.1 → none
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers