You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@jclouds.apache.org by "Russell Klopfer (JIRA)" <ji...@apache.org> on 2018/04/17 17:16:00 UTC

[jira] [Updated] (JCLOUDS-1411) StorageType not maintained by filesystem BlobStore

     [ https://issues.apache.org/jira/browse/JCLOUDS-1411?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Russell Klopfer updated JCLOUDS-1411:
-------------------------------------
    Description: 
The directory related methods on BlobStore are deprecated, so I am trying to update to the new directory-less scheme. However, when I do the following, 
{code:java}
Blob dirBlob = blobStore.blobBuilder("some/path/").type(StorageType.FOLDER).build();
blobStore.putBlob(containerName, dirBlob);

BlobMetadata fetchedMeta = blobStore.blobMetadata(containterName, "some/path/");
StorageType fetchedType = fetchedMeta.getType();{code}
{{fetchedType}} (BLOB) does not match the type on {{dirBlob (FOLDER)}}. 

One place this causes problems is when these directories appear as normal blobs when doing a \{{BlobStore.list()}}

 

  was:
The directory related methods on BlobStore are deprecated, so I am trying to update to the new directory-less scheme. However, when I do the following, 
{code:java}
Blob dirBlob = blobStore.blobBuilder("some/path/").type(StorageType.FOLDER).build();
blobStore.putBlob(containerName, dirBlob);

BlobMetadata fetchedMeta = blobStore.blobMetadata(containterName, "some/path/");
StorageType fetchedType = fetchedMeta.getType();{code}
{{fetchedType}} (BLOB) does not match the type on {{dirBlob (FOLDER)}}. 

One place this causes problems is when these directories appear as normal blobs when doing a B{{lobStore.list()}}

 


> StorageType not maintained by filesystem BlobStore
> --------------------------------------------------
>
>                 Key: JCLOUDS-1411
>                 URL: https://issues.apache.org/jira/browse/JCLOUDS-1411
>             Project: jclouds
>          Issue Type: Bug
>          Components: jclouds-blobstore
>    Affects Versions: 2.0.0, 2.1.0, 2.0.3
>         Environment: Windows7
>            Reporter: Russell Klopfer
>            Priority: Major
>
> The directory related methods on BlobStore are deprecated, so I am trying to update to the new directory-less scheme. However, when I do the following, 
> {code:java}
> Blob dirBlob = blobStore.blobBuilder("some/path/").type(StorageType.FOLDER).build();
> blobStore.putBlob(containerName, dirBlob);
> BlobMetadata fetchedMeta = blobStore.blobMetadata(containterName, "some/path/");
> StorageType fetchedType = fetchedMeta.getType();{code}
> {{fetchedType}} (BLOB) does not match the type on {{dirBlob (FOLDER)}}. 
> One place this causes problems is when these directories appear as normal blobs when doing a \{{BlobStore.list()}}
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)