jclouds-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCLOUDS-930) Expose the prefix option when listing a container
Date Tue, 07 Jul 2015 15:24:05 GMT

    [ https://issues.apache.org/jira/browse/JCLOUDS-930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14616855#comment-14616855

ASF subversion and git services commented on JCLOUDS-930:

Commit 03248b4c9406f536bfdcbe3bce9d5b7163b93e49 in jclouds's branch refs/heads/master from
[ https://git-wip-us.apache.org/repos/asf?p=jclouds.git;h=03248b4 ]

JCLOUDS-930: LocalStore -- fixup for prefixes.

When filtering results, we have to consider that a result was added to
the common prefixes list in its entirety (i.e. a directory). Such
results should be filtered out from the delimiter test.

An example that demonstrates this problem is if one creates a
directory "foo" and an object within it called "file". When listing
the results, they will include the directory object "foo" and the
object under "foo/file". During a non-recursive listing, we create a
list of common prefixes ("foo"). Subsequently, jclouds should remove
all objects that include the delimiter ("/"), however, that would not
apply to "foo". With the change to include the delimiter in the
listing, we need to be careful not to return two values "foo" and

A unit test for the local blob store to highlight this problem is
included. An integration test "testDirectory" also catches this issue.

> Expose the prefix option when listing a container
> -------------------------------------------------
>                 Key: JCLOUDS-930
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-930
>             Project: jclouds
>          Issue Type: New Feature
>          Components: jclouds-blobstore
>            Reporter: Timur Alperovich
>            Assignee: Timur Alperovich
> Currently, the blob store interface exposes an _inDirectory()_ method to set the directory
from which to list blobs. This is implemented through a combination of prefix and delimiter
options, namely combining them to retrieve all objects nested under a specific "directory"
(e.g. dir/).
> jclouds should expose an explicit prefix option to, for example, allow listing objects
that all start with a common name. The difference from the existing inDirectory() option is
that the prefix would not require the delimiter to be set and could be an arbitrary string.
> The prefix is an option supported by S3, Swift, Azure, and Google Cloud Storage.

This message was sent by Atlassian JIRA

View raw message