Use POST in bulk-delete
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openstack-api-site |
Fix Released
|
Medium
|
Diane Fleming | ||
openstack-manuals |
Fix Released
|
Medium
|
Diane Fleming |
Bug Description
https:/
commit 94090e8760da324
Author: Kun Huang <email address hidden>
Date: Tue Oct 22 18:05:43 2013 +0800
Use POST in bulk-delete
The DELETE verb applies to a single resource, and doesn't define any
semantics for the body.
http://
The swift Bulk Delete command affects multiple resources specified in a
DELETE body.
http://
While Bulk Delete is a welcome operation, its usage of DELETE is
unusual: affecting multiple resources and relying on reading content.
More typically, such an operation employs POST (or PUT), which folks
including api-craft usually agree is the best "catch-all" verb for
behaviors such as those affecting multiple resources. That's the TL;DR;
of the thread below.
Note that this topic isn't nasal or abstract. The current behavior is
unsupported using the built-in java http client. Even if third-party
libraries can work around this behavior, it is probably best to not be a
snowflake wrt http verb semantics where possible!
http://
DocImpact
Closes-Bug: #1232787
Change-Id: I0fc74c85618fe4
Changed in openstack-manuals: | |
milestone: | none → icehouse |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in openstack-api-site: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
milestone: | none → icehouse |
Changed in openstack-api-site: | |
status: | Fix Committed → Fix Released |
Changed in openstack-manuals: | |
status: | Fix Committed → Fix Released |
This has already been addressed in the docs: http:// docs.openstack. org/api/ openstack- object- storage/ 1.0/content/ bulk-delete. html
It's noted that both POST and DELETE work, but DELETE is supported for backward compatibility for bulk-delete.