create region returns 200 OK instead of 201 Created

Bug #1272501 reported by Dolph Mathews
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Identity (keystone)
Fix Released
Medium
Dolph Mathews

Bug Description

This probably also applies to a lot of older v3 APIs, but I specifically noticed it on the new /v3/regions API so I'd like to fix it there first before it's released.

Upon success, both of the following resources return 200 OK instead of 201 Created:

 POST /v3/regions
 PUT /v3/regions/{region_id}

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/69002

Changed in keystone:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to keystone (master)

Reviewed: https://review.openstack.org/69002
Committed: https://git.openstack.org/cgit/openstack/keystone/commit/?id=ee19945e1874fca3a1b11deafcfbe8bd2bb0b1a6
Submitter: Jenkins
Branch: master

commit ee19945e1874fca3a1b11deafcfbe8bd2bb0b1a6
Author: Dolph Mathews <email address hidden>
Date: Fri Jan 24 14:05:08 2014 -0600

    add policy entries for /v3/regions

    This adds entries to policy.json for v3 region CRUD including a refactor
    around the create_region* methods such that there only needs to be one
    entry in policy.json for both API methods (POST /v3/regions and PUT
    /v3/regions/{region_id} are both enforced by 'identity:create_region').

    This also corrects the HTTP response code on create_region (from 200 OK
    to 201 Created) by explicitly setting it and makes the tests a bit more
    dynamic.

    Closes-Bug: 1272496
    Closes-Bug: 1272501
    Change-Id: Icaa9b005788b50342d5fdb334055f5fad25436d9

Changed in keystone:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in keystone:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in keystone:
milestone: icehouse-3 → 2014.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.