Container POST should return a 201 instead of 202

Bug #1344365 reported by Paul Glass
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Barbican
Fix Released
Medium
Paul Glass

Bug Description

On a POST request, containers are created immediately, in which case an HTTP 201 response code should be returned.

The HTTP 202 response code is for asynchronous requests that have been accepted but not yet completed.

See: https://github.com/openstack/barbican/blob/master/barbican/api/controllers/containers.py#L157

Paul Glass (pnglass)
Changed in barbican:
assignee: nobody → Paul Glass (pnglass)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to barbican (master)

Reviewed: https://review.openstack.org/111302
Committed: https://git.openstack.org/cgit/openstack/barbican/commit/?id=badf2ac2ad762a09639e60b9f85febc6e578155a
Submitter: Jenkins
Branch: master

commit badf2ac2ad762a09639e60b9f85febc6e578155a
Author: Paul Glass <email address hidden>
Date: Fri Aug 1 09:39:36 2014 -0500

    Correct container create response code to be 201

    Closes-Bug: #1344365
    Change-Id: I288a21fb2eb43a50154c8be0b5ff6183d0af09d9

Changed in barbican:
status: New → Fix Committed
Thierry Carrez (ttx)
Changed in barbican:
milestone: none → juno-3
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in barbican:
milestone: juno-3 → 2014.2
Changed in barbican:
importance: Undecided → Medium
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.