Skip to content
This repository was archived by the owner on Jul 19, 2024. It is now read-only.

Commit 988fd70

Browse files
authored
Merge pull request #391 from rickle-msft/dev
Dev
2 parents 06fa772 + 683115d commit 988fd70

File tree

8 files changed

+47
-10
lines changed

8 files changed

+47
-10
lines changed

ChangeLog.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
XXXX.XX.XX Version XX.X.X
1+
2018.10.29 Version 10.2.0
22
* Added overloads which only accept the required parameters.
3-
* TransferManager options now throw if an IProgressReceiver is passed as it is not currently supported. Support will be added in a later release.
43
* 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.
54
* Added support for IProgressReceiver in TransferManager operations. This parameter was previously ignored but is now supported.
65
* Removed internal dependency on javafx to be compatible with openjdk.
7-
* 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.
86
* Fixed a bug that would cause downloading large files with the TransferManager to fail.
97
* 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.
108

ISSUE_TEMPLATE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
### Which service(blob, file, queue, table) does this issue concern?
2+
3+
4+
### Which version of the SDK was used?
5+
6+
7+
### What problem was encountered?
8+
9+
10+
### Have you found a mitigation/solution?

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ To get the binaries of this library as distributed by Microsoft, ready for use w
3131
<dependency>
3232
<groupId>com.microsoft.azure</groupId>
3333
<artifactId>azure-storage-blob</artifactId>
34-
<version>10.1.0</version>
34+
<version>10.2.0</version>
3535
</dependency>
3636
```
3737

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
<groupId>com.microsoft.azure</groupId>
1616
<artifactId>azure-storage-blob</artifactId>
17-
<version>10.1.0</version>
17+
<version>10.2.0</version>
1818

1919
<name>Azure Storage Blob</name>
2020
<description>The Azure Storage Java Blob library.</description>

src/main/java/com/microsoft/azure/storage/blob/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ static final class HeaderConstants {
170170
/**
171171
* Specifies the value to use for UserAgent header.
172172
*/
173-
static final String USER_AGENT_VERSION = "10.1.0";
173+
static final String USER_AGENT_VERSION = "10.2.0";
174174

175175
private HeaderConstants() {
176176
// Private to prevent construction.

src/test/java/com/microsoft/azure/storage/ContainerAPITest.groovy

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1677,6 +1677,15 @@ class ContainerAPITest extends APISpec {
16771677
def "Root explicit"() {
16781678
setup:
16791679
cu = primaryServiceURL.createContainerURL(ContainerURL.ROOT_CONTAINER_NAME)
1680+
// Create root container if not exist.
1681+
try {
1682+
cu.create(null, null, null).blockingGet()
1683+
}
1684+
catch (StorageException se) {
1685+
if (se.errorCode() != StorageErrorCode.CONTAINER_ALREADY_EXISTS) {
1686+
throw se
1687+
}
1688+
}
16801689
BlobURL bu = cu.createAppendBlobURL("rootblob")
16811690

16821691
expect:
@@ -1685,10 +1694,20 @@ class ContainerAPITest extends APISpec {
16851694

16861695
def "Root implicit"() {
16871696
setup:
1697+
cu = primaryServiceURL.createContainerURL(ContainerURL.ROOT_CONTAINER_NAME)
1698+
// Create root container if not exist.
1699+
try {
1700+
cu.create(null, null, null).blockingGet()
1701+
}
1702+
catch (StorageException se) {
1703+
if (se.errorCode() != StorageErrorCode.CONTAINER_ALREADY_EXISTS) {
1704+
throw se
1705+
}
1706+
}
16881707
PipelineOptions po = new PipelineOptions()
16891708
po.withClient(getHttpClient())
16901709
HttpPipeline pipeline = StorageURL.createPipeline(primaryCreds, po)
1691-
AppendBlobURL bu = new AppendBlobURL(new URL("http://xclientdev3.blob.core.windows.net/rootblob"),
1710+
AppendBlobURL bu = new AppendBlobURL(new URL("http://" + primaryCreds.getAccountName() + ".blob.core.windows.net/rootblob"),
16921711
pipeline)
16931712

16941713
when:
@@ -1704,6 +1723,16 @@ class ContainerAPITest extends APISpec {
17041723

17051724
def "Web container"() {
17061725
setup:
1726+
cu = primaryServiceURL.createContainerURL(ContainerURL.STATIC_WEBSITE_CONTAINER_NAME)
1727+
// Create root container if not exist.
1728+
try {
1729+
cu.create(null, null, null).blockingGet()
1730+
}
1731+
catch (StorageException se) {
1732+
if (se.errorCode() != StorageErrorCode.CONTAINER_ALREADY_EXISTS) {
1733+
throw se
1734+
}
1735+
}
17071736
def webContainer = primaryServiceURL.createContainerURL(ContainerURL.STATIC_WEBSITE_CONTAINER_NAME)
17081737

17091738
when:

src/test/java/com/microsoft/azure/storage/ServiceAPITest.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ class ServiceAPITest extends APISpec {
315315
def "Get stats"() {
316316
setup:
317317
BlobURLParts parts = URLParser.parse(primaryServiceURL.toURL())
318-
parts.withHost("xclientdev3-secondary.blob.core.windows.net")
318+
parts.withHost(primaryCreds.getAccountName() + "-secondary.blob.core.windows.net")
319319
ServiceURL secondary = new ServiceURL(parts.toURL(),
320320
StorageURL.createPipeline(primaryCreds, new PipelineOptions()))
321321
ServiceGetStatisticsResponse response = secondary.getStatistics(null).blockingGet()
@@ -331,7 +331,7 @@ class ServiceAPITest extends APISpec {
331331
def "Get stats min"() {
332332
setup:
333333
BlobURLParts parts = URLParser.parse(primaryServiceURL.toURL())
334-
parts.withHost("xclientdev3-secondary.blob.core.windows.net")
334+
parts.withHost(primaryCreds.getAccountName() + "-secondary.blob.core.windows.net")
335335
ServiceURL secondary = new ServiceURL(parts.toURL(),
336336
StorageURL.createPipeline(primaryCreds, new PipelineOptions()))
337337

src/test/java/com/microsoft/azure/storage/TransferManagerTest.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ class TransferManagerTest extends APISpec {
685685
}
686686

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

0 commit comments

Comments
 (0)