Comparing version 0.7.0 to 0.7.1
@@ -10,2 +10,3 @@ 'use strict'; | ||
setContainerAclHandler = require('./../api/SetContainerAcl'), | ||
getContainerAclHandler = require('./../api/GetContainerAcl'), | ||
env = require('./../env'); | ||
@@ -27,2 +28,4 @@ | ||
getContainerMetadataHandler.process(req, res, req.params.container); | ||
} else if (restype === 'container' && comp === 'acl') { | ||
getContainerAclHandler.process(req, res, req.params.container); | ||
} else if (restype === 'container') { | ||
@@ -37,2 +40,5 @@ getContainerPropertiesHandler.process(req, res, req.params.container); | ||
getContainerMetadataHandler.process(req, res, req.params.container); | ||
} | ||
else if (restype === 'container' && comp === 'acl') { | ||
getContainerAclHandler.process(req, res, req.params.container); | ||
} else if (restype === 'container') { | ||
@@ -39,0 +45,0 @@ getContainerPropertiesHandler.process(req, res, req.params.container); |
@@ -746,2 +746,26 @@ 'use strict'; | ||
getContainerAcl(containerName) { | ||
return BbPromise.try(() => { | ||
new RootValidator({ | ||
containerName: containerName, | ||
collection: this.db.getCollection(StorageTables.Containers) | ||
}) | ||
.run(ContainerExistsVal); | ||
const res = this._getCollectionAndContainer(containerName), | ||
container = res.container; | ||
const props = { | ||
ETag: container.meta.revision, | ||
'Last-Modified': container.httpProps['Last-Modified'], | ||
} | ||
if (container.access !== 'private') { | ||
props['x-ms-blob-public-access'] = container.access; | ||
} | ||
return { | ||
props: props, | ||
signedIdentifiers: container.signedIdentifiers, | ||
} | ||
}); | ||
} | ||
_updatePageRanges(collPages, pageRanges, startByte, endByte, name) { | ||
@@ -748,0 +772,0 @@ const startAlignment = startByte / 512, |
{ | ||
"name": "azurite", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "A lightweight server clone of Azure Blob Storage that simulates most of the commands supported by it with minimal dependencies.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
138557
67
3014