Skip to content

Commit

Permalink
Release prep
Browse files Browse the repository at this point in the history
  • Loading branch information
rickle-msft committed Oct 29, 2018
1 parent fe328c6 commit 1992f36
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 8 deletions.
4 changes: 1 addition & 3 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
XXXX.XX.XX Version XX.X.X
2018.10.29 Version 10.2.0
* Added overloads which only accept the required parameters.
* TransferManager options now throw if an IProgressReceiver is passed as it is not currently supported. Support will be added in a later release.
* Added CopyFromURL, which will do a synchronous server-side copy, meaning the service will not return an HTTP response until it has completed the copy.
* Added support for IProgressReceiver in TransferManager operations. This parameter was previously ignored but is now supported.
* Removed internal dependency on javafx to be compatible with openjdk.
* Fixed a bug that would cause downloading large files with the TransferManager to fail and a bug in BlobURL.download() logic for setting up reliable download.
* Fixed a bug that would cause downloading large files with the TransferManager to fail.
* Fixed a bug in BlobURL.download() logic for setting up reliable download. This had the potential to download the wrong range when a download stream was retried.

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ To get the binaries of this library as distributed by Microsoft, ready for use w
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-storage-blob</artifactId>
<version>10.1.0</version>
<version>10.2.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<groupId>com.microsoft.azure</groupId>
<artifactId>azure-storage-blob</artifactId>
<version>10.1.0</version>
<version>10.2.0</version>

<name>Azure Storage Blob</name>
<description>The Azure Storage Java Blob library.</description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ static final class HeaderConstants {
/**
* Specifies the value to use for UserAgent header.
*/
static final String USER_AGENT_VERSION = "10.1.0";
static final String USER_AGENT_VERSION = "10.2.0";

private HeaderConstants() {
// Private to prevent construction.
Expand Down
20 changes: 20 additions & 0 deletions src/test/java/com/microsoft/azure/storage/ContainerAPITest.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1694,6 +1694,16 @@ class ContainerAPITest extends APISpec {

def "Root implicit"() {
setup:
cu = primaryServiceURL.createContainerURL(ContainerURL.ROOT_CONTAINER_NAME)
// Create root container if not exist.
try {
cu.create(null, null, null).blockingGet()
}
catch (StorageException se) {
if (se.errorCode() != StorageErrorCode.CONTAINER_ALREADY_EXISTS) {
throw se
}
}
PipelineOptions po = new PipelineOptions()
po.withClient(getHttpClient())
HttpPipeline pipeline = StorageURL.createPipeline(primaryCreds, po)
Expand All @@ -1713,6 +1723,16 @@ class ContainerAPITest extends APISpec {

def "Web container"() {
setup:
cu = primaryServiceURL.createContainerURL(ContainerURL.STATIC_WEBSITE_CONTAINER_NAME)
// Create root container if not exist.
try {
cu.create(null, null, null).blockingGet()
}
catch (StorageException se) {
if (se.errorCode() != StorageErrorCode.CONTAINER_ALREADY_EXISTS) {
throw se
}
}
def webContainer = primaryServiceURL.createContainerURL(ContainerURL.STATIC_WEBSITE_CONTAINER_NAME)

when:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ class ServiceAPITest extends APISpec {
def "Get stats min"() {
setup:
BlobURLParts parts = URLParser.parse(primaryServiceURL.toURL())
parts.withHost("xclientdev3-secondary.blob.core.windows.net")
parts.withHost(primaryCreds.getAccountName() + "-secondary.blob.core.windows.net")
ServiceURL secondary = new ServiceURL(parts.toURL(),
StorageURL.createPipeline(primaryCreds, new PipelineOptions()))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ class TransferManagerTest extends APISpec {
}

def "Download options progress receiver"() {
def fileSize = 8L * 1026 * 1024 + 10
def fileSize = 8 * 1026 * 1024 + 10
def channel = AsynchronousFileChannel.open(getRandomFile(fileSize).toPath(),
StandardOpenOption.READ, StandardOpenOption.WRITE)
TransferManager.uploadFileToBlockBlob(channel, bu, BlockBlobURL.MAX_STAGE_BLOCK_BYTES, null)
Expand Down

0 comments on commit 1992f36

Please sign in to comment.