You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Timur Alperovich (JIRA)" <ji...@apache.org> on 2015/06/13 02:32:00 UTC
[jira] [Updated] (JCLOUDS-938) [Swift] bulk-delete parameters do
not start with "/"
[ https://issues.apache.org/jira/browse/JCLOUDS-938?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Timur Alperovich updated JCLOUDS-938:
-------------------------------------
Summary: [Swift] bulk-delete parameters do not start with "/" (was: [Swift] bulkDelete parameters do not start with "/")
> [Swift] bulk-delete 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)