Timur Alperovich created JCLOUDS-938:
----------------------------------------
Summary: [Swift] bulkDelete parameters do not start with "/"
Key: JCLOUDS-938
URL: https://issues.apache.org/jira/browse/JCLOUDS-938
Project: jclouds
Issue Type: Bug
Components: jclouds-blobstore
Reporter: Timur Alperovich
Swift bulk delete specifies that the arguments to the bulk-delete call should
start with "/":
{quote} The objects specified in the POST request body must be URL encoded and
in the form:
/container_name/obj_name
or for a container (which must be empty at time of delete)
/container_name
{quote}
http://docs.openstack.org/developer/swift/middleware.html
jclouds currently does the following:
{code:java|title=RegionScopedSwiftBlobStore.java}
349 @Override
350 public void removeBlobs(String container, Iterable<String> names) {
351 BulkApi bulkApi = api.getBulkApi(regionId);
352 for (List<String> partition : Iterables.partition(names, 1000)) {
353 ImmutableList.Builder<String> builder = ImmutableList.builder();
354 for (String name : partition) {
355 builder.add(container + "/" + name);
356 }
357 bulkApi.bulkDelete(builder.build());
358 }
359 }
{code}
Is there any objection to prepending "/"?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)