Add user has wrong response code

Bug #1131119 reported by Christopher Yeoh
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Undecided
gordon chung

Bug Description

According to the API documentation here:

http://docs.openstack.org/api/openstack-identity-service/2.0/content/POST_addUser_v2.0_users_Admin_API_Service_Developer_Operations-d1e1356.html

adding a user sucessfully should return a 201 response code. It appears that 200 is being returned instead. I think that either the documentation or the code needs to be fixed.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to keystone (master)

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

Changed in keystone:
assignee: nobody → gordon chung (chungg)
status: New → In Progress
Revision history for this message
David Höppner (0xffea) wrote :

Should it not be "name" not "username" in the api docs?

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/22600
Committed: http://github.com/openstack/keystone/commit/dd7d4fd551f727873462d3ef2ece863ab6400995
Submitter: Jenkins
Branch: master

commit dd7d4fd551f727873462d3ef2ece863ab6400995
Author: Gordon Chung <email address hidden>
Date: Thu Feb 21 15:52:12 2013 -0500

    return 201 Created on POST request (bug1131119)

    correct status code from 200 Ok to 201 Created for v3 POST requests.

    Fixes: bug #1131119
    Change-Id: Iabeb6daf677e0f34defdef5e58d87229fc90346f

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
milestone: none → grizzly-rc1
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: grizzly-rc1 → 2013.1
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.