Bulk delete in OpenStack Object Storage API v1 Reference  - API v1

Bug #1288327 reported by Rodney Beede
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-api-site
Fix Released
Low
Diane Fleming

Bug Description

"The objects to be deleted are listed in the body of a POST operation."

Shouldn't this be a DELETE operation and not POST?

-----------------------------------
Built: 2014-02-28T18:19:00 00:00
git SHA: 2df68e7cd5cf9dc47cc51fed31d6069259154711
URL: http://docs.openstack.org/api/openstack-object-storage/1.0/content/bulk-delete.html
source File: file:/home/jenkins/workspace/object-api-tox-doc-publishdocs/openstack-object-storage-dev/section_object-api-bulk-delete.xml
xml:id: bulk-delete

Revision history for this message
Rodney Beede (business2008+launchpad) wrote :

This page references DELETE:

http://docs.openstack.org/trunk/config-reference/content/object-storage-bulk-delete.html

Both pages could use a more clear example of the HTTP request string.

Revision history for this message
Rodney Beede (business2008+launchpad) wrote :

Looking at the source code (https://github.com/openstack/swift/blob/stable/havana/swift/common/middleware/bulk.py) it would appear that DELETE is the correct method as per the code line:

if 'bulk-delete' in req.params and req.method == 'DELETE':

Stephen Gordon (sgordon)
no longer affects: openstack-manuals
Changed in openstack-api-site:
assignee: nobody → Diane Fleming (diane-fleming)
status: New → In Progress
importance: Undecided → Low
milestone: none → icehouse
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to object-api (master)

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

Revision history for this message
Diane Fleming (diane-fleming) wrote :
Revision history for this message
Donagh McCabe (donagh-mccabe) wrote :

See https://review.openstack.org/#/c/53090/

POST is the preferred method

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

Reviewed: https://review.openstack.org/80696
Committed: https://git.openstack.org/cgit/openstack/object-api/commit/?id=9aaf74f0e491333949d93ea9ba26a017d224fbe5
Submitter: Jenkins
Branch: master

commit 9aaf74f0e491333949d93ea9ba26a017d224fbe5
Author: Diane Fleming <email address hidden>
Date: Fri Mar 14 15:48:24 2014 -0500

    Changed bulk-delete to DELETE from POST

    Also, moved information about auto-archive to that chapter.
    Made some small edits to reduce redundancy and improve clarity.

    Closes-Bug: #1288327

    Change-Id: I53731cf895e3e28aa19d92be27d3d4f9c81678e1
    author: diane fleming (<email address hidden>)

Changed in openstack-api-site:
status: In Progress → 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.