From e50bd79f01c89adb6d791083e30ce386a43303c0 Mon Sep 17 00:00:00 2001 From: Andrew Gaul Date: Sun, 31 Jan 2016 18:14:25 -0800 Subject: [PATCH] Map PublicAccess.CONTAINER to PUBLIC_READ This better matches the semantics of other providers and allows clients to list a publicly readable container. --- .../java/org/jclouds/azureblob/blobstore/AzureBlobStore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/providers/azureblob/src/main/java/org/jclouds/azureblob/blobstore/AzureBlobStore.java b/providers/azureblob/src/main/java/org/jclouds/azureblob/blobstore/AzureBlobStore.java index d2cb8ed223..0ec92ef73b 100644 --- a/providers/azureblob/src/main/java/org/jclouds/azureblob/blobstore/AzureBlobStore.java +++ b/providers/azureblob/src/main/java/org/jclouds/azureblob/blobstore/AzureBlobStore.java @@ -353,7 +353,7 @@ public class AzureBlobStore extends BaseBlobStore { @Override public ContainerAccess getContainerAccess(String container) { PublicAccess access = sync.getPublicAccessForContainer(container); - if (access == PublicAccess.BLOB) { + if (access == PublicAccess.CONTAINER) { return ContainerAccess.PUBLIC_READ; } else { return ContainerAccess.PRIVATE; @@ -364,7 +364,7 @@ public class AzureBlobStore extends BaseBlobStore { public void setContainerAccess(String container, ContainerAccess access) { PublicAccess publicAccess; if (access == ContainerAccess.PUBLIC_READ) { - publicAccess = PublicAccess.BLOB; + publicAccess = PublicAccess.CONTAINER; } else { publicAccess = PublicAccess.PRIVATE; }