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

Commit 7018571

Browse files
authored
Merge pull request #444 from Azure/legacy-dev
Legacy dev
2 parents 98c61e8 + 24c28e0 commit 7018571

File tree

10 files changed

+19
-13
lines changed

10 files changed

+19
-13
lines changed

ChangeLog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2019.03.01 Version 8.1.0
2+
* Added support for the deep sync copy blob api.
3+
* Added the option to disable etag validation on BlobInputStream reads.
4+
* Added the ability to specify an offset and range on a BlobInputStream.
5+
16
2018.06.26 Version 8.0.0
27
* Support for 2018-03-28 REST version. Please see our REST API documentation and blogs for information about the related added features.
38
* Added support for static website properties.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ To get the binaries of this library as distributed by Microsoft, ready for use w
3939
<dependency>
4040
<groupId>com.microsoft.azure</groupId>
4141
<artifactId>azure-storage</artifactId>
42-
<version>8.0.0</version>
42+
<version>8.1.0</version>
4343
</dependency>
4444
```
4545

microsoft-azure-storage-samples/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<dependency>
2727
<groupId>com.microsoft.azure</groupId>
2828
<artifactId>azure-storage</artifactId>
29-
<version>8.0.0</version>
29+
<version>8.1.0</version>
3030
</dependency>
3131
<dependency>
3232
<groupId>com.microsoft.azure</groupId>

microsoft-azure-storage-samples/src/com/microsoft/azure/storage/logging/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<dependency>
2727
<groupId>com.microsoft.azure</groupId>
2828
<artifactId>azure-storage</artifactId>
29-
<version>8.0.0</version>
29+
<version>8.1.0</version>
3030
</dependency>
3131
<dependency>
3232
<groupId>com.microsoft.azure</groupId>

microsoft-azure-storage-test/src/com/microsoft/azure/storage/blob/CloudBlockBlobTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -602,14 +602,14 @@ public void testCopyBlockBlobTest() throws InvalidKeyException, URISyntaxExcepti
602602
this.doCloudBlockBlobCopy(false, false, false);
603603
}
604604

605-
/*@Test
605+
@Test
606606
@Category({ DevFabricTests.class, DevStoreTests.class, SlowTests.class })
607607
public void testCopyBlockBlobSyncTest() throws InterruptedException, IOException, StorageException,
608608
InvalidKeyException, URISyntaxException {
609609
this.doCloudBlockBlobCopy(false, false, true);
610-
}*/
610+
}
611611

612-
/*@Test
612+
@Test
613613
public void testCopyBlockBlobWithSyncMd5() throws URISyntaxException, StorageException, IOException, NoSuchAlgorithmException {
614614
// Create source on server. We must copy from a different account or the service will not validate the md5.
615615
CloudBlobContainer container = BlobTestHelper.getRandomCopySourceContainerReference();
@@ -679,7 +679,7 @@ public void testCopyBlockBlobWithSyncMd5() throws URISyntaxException, StorageExc
679679
destination.delete();
680680
source.delete();
681681
container.deleteIfExists();
682-
}*/
682+
}
683683

684684
@Test
685685
public void testCopyWithChineseChars() throws StorageException, IOException, URISyntaxException {

microsoft-azure-storage/src/com/microsoft/azure/storage/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ public static class HeaderConstants {
715715
/**
716716
* Specifies the value to use for UserAgent header.
717717
*/
718-
public static final String USER_AGENT_VERSION = "7.0.0";
718+
public static final String USER_AGENT_VERSION = "8.1.0";
719719

720720
/**
721721
* The default type for content-type and accept

microsoft-azure-storage/src/com/microsoft/azure/storage/blob/CloudBlob.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ protected final String startCopy(final URI source, final PremiumPageBlobTier pre
740740
*
741741
*/
742742
@DoesServiceRequest
743-
private final String startCopy(final URI source, String contentMd5, boolean syncCopy, final PremiumPageBlobTier premiumPageBlobTier, final AccessCondition sourceAccessCondition,
743+
protected final String startCopy(final URI source, String contentMd5, boolean syncCopy, final PremiumPageBlobTier premiumPageBlobTier, final AccessCondition sourceAccessCondition,
744744
final AccessCondition destinationAccessCondition, BlobRequestOptions options, OperationContext opContext)
745745
throws StorageException {
746746
if (opContext == null) {

microsoft-azure-storage/src/com/microsoft/azure/storage/blob/CloudBlockBlob.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public final String startCopy(final CloudBlockBlob sourceBlob, final AccessCondi
254254
*
255255
*/
256256
@DoesServiceRequest
257-
private final String startCopy(final CloudBlockBlob sourceBlob, String contentMd5, boolean syncCopy, final AccessCondition sourceAccessCondition,
257+
public final String startCopy(final CloudBlockBlob sourceBlob, String contentMd5, boolean syncCopy, final AccessCondition sourceAccessCondition,
258258
final AccessCondition destinationAccessCondition, BlobRequestOptions options, OperationContext opContext)
259259
throws StorageException, URISyntaxException {
260260
Utility.assertNotNull("sourceBlob", sourceBlob);
@@ -265,7 +265,8 @@ private final String startCopy(final CloudBlockBlob sourceBlob, String contentMd
265265
source = sourceBlob.getServiceClient().getCredentials().transformUri(sourceBlob.getSnapshotQualifiedUri());
266266
}
267267

268-
return this.startCopy(source, null /* premiumPageBlobTier */, sourceAccessCondition, destinationAccessCondition, options, opContext);
268+
return this.startCopy(source, contentMd5, syncCopy, null /* premiumPageBlobTier */, sourceAccessCondition,
269+
destinationAccessCondition, options, opContext);
269270
}
270271

271272
/**

microsoft-azure-storage/src/com/microsoft/azure/storage/core/Utility.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ public static void assertContinuationType(final ResultContinuation continuationT
347347
if (!(continuationToken.getContinuationType() == ResultContinuationType.NONE || continuationToken
348348
.getContinuationType() == continuationType)) {
349349
final String errorMessage = String.format(Utility.LOCALE_US, SR.UNEXPECTED_CONTINUATION_TYPE,
350-
continuationToken.getContinuationType(), continuationType);
350+
continuationType, continuationToken.getContinuationType());
351351
throw new IllegalArgumentException(errorMessage);
352352
}
353353
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<modelVersion>4.0.0</modelVersion>
1111
<groupId>com.microsoft.azure</groupId>
1212
<artifactId>azure-storage</artifactId>
13-
<version>8.0.0</version>
13+
<version>8.1.0</version>
1414
<packaging>jar</packaging>
1515

1616
<name>Microsoft Azure Storage Client SDK</name>

0 commit comments

Comments
 (0)