Map PublicAccess.CONTAINER to PUBLIC_READ

This better matches the semantics of other providers and allows
clients to list a publicly readable container.
This commit is contained in:
Andrew Gaul 2016-01-31 18:14:25 -08:00
parent 77eef902b4
commit e50bd79f01
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}