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

Commit 64cf5fe

Browse files
author
jofriedm-msft
authored
Merge pull request #221 from Azure/master
6.0.0 Release
2 parents e097b20 + abfae32 commit 64cf5fe

File tree

24 files changed

+1614
-916
lines changed

24 files changed

+1614
-916
lines changed

BreakingChanges.txt

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
Changes in 5.1.1
1+
Changes in 6.0.0
2+
3+
FILE
4+
* Many File service APIs can now throw a URISyntaxException.
5+
* Changed listShares() ShareListingDetails parameter to be an enum set like what is done for listing blobs.
6+
7+
OTHER
8+
* DefaultEndpointsProtocol will now be explicitly included in generated connection strings.
9+
* Connection string parsing has been substantially re-written and expanded. Please refer to current documentation about connection string formats.
10+
11+
Changes in 5.1.1
212
OTHER
313
* Reverted the code from 5.1.0 because it contained a regression and an accidental change.
414

ChangeLog.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2017.10.06 Version 6.0.0
2+
* Added support for taking a snapshot of a share.
3+
* IOExceptions wrapping StorageExceptions will now contain the StorageException message in the outer exception.
4+
* Connection string support expanded to allow AccountName to be specified with SharedAccessSignature and DefaultEndpointsProtocol. In this case, SharedAccessSignature is used for credentials, while having both DefaultEndpointsProtocol and AccountName allows the library to infer a set of default endpoints. Additionally, we have added support for BlobSecondaryEndpoint, QueueSecondaryEndpoint, TableSecondaryEndpoint, and FileSecondaryEndpoint. Specifying a secondary endpoint requires the specification of the corresponding primary.
5+
* All: The use of DefaultEndpointsProtocol in a connection string is now optional in the case where endpoints would be automatically generated; if missing, a value of https will be inferred. When the parsed account settings in such a case are used to generate a connection string, the value of DefaultEndpointsProtocol will be explicitly included.
6+
17
2017.08.28 Version 5.5.0
28
* Fixed a bug when using a SAS token where the token was being omitted from calls to delete a directory in the file service.
39
* For Standard Storage Accounts only, added the ability to set the tier of individual block blobs. The tier can currently only be set through uploadTier()

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ To get the binaries of this library as distributed by Microsoft, ready for use w
3030
<dependency>
3131
<groupId>com.microsoft.azure</groupId>
3232
<artifactId>azure-storage</artifactId>
33-
<version>5.5.0</version>
33+
<version>6.0.0</version>
3434
</dependency>
3535
```
3636

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>5.5.0</version>
29+
<version>6.0.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>5.5.0</version>
29+
<version>6.0.0</version>
3030
</dependency>
3131
<dependency>
3232
<groupId>com.microsoft.azure</groupId>

microsoft-azure-storage-test/src/com/microsoft/azure/storage/EventFiringTests.java

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,10 @@
2020
import com.microsoft.azure.storage.TestRunners.DevFabricTests;
2121
import com.microsoft.azure.storage.TestRunners.DevStoreTests;
2222

23-
import org.apache.http.protocol.HTTP;
2423
import org.junit.Test;
2524
import org.junit.experimental.categories.Category;
2625

27-
import java.io.ByteArrayInputStream;
28-
import java.io.IOException;
2926
import java.net.HttpURLConnection;
30-
import java.net.SocketException;
3127
import java.net.URISyntaxException;
3228
import java.util.ArrayList;
3329

@@ -121,14 +117,16 @@ public void eventOccurred(ErrorReceivingResponseEvent eventArg) {
121117
}
122118
});
123119

124-
try {
125-
OperationContext.getGlobalErrorReceivingResponseEventHandler().addListener(new StorageEvent<ErrorReceivingResponseEvent>() {
120+
StorageEvent<ErrorReceivingResponseEvent> globalResponseReceivedListener = new StorageEvent<ErrorReceivingResponseEvent>() {
126121

127-
@Override
128-
public void eventOccurred(ErrorReceivingResponseEvent eventArg) {
129-
fail("This event should not trigger");
130-
}
131-
});
122+
@Override
123+
public void eventOccurred(ErrorReceivingResponseEvent eventArg) {
124+
fail("This event should not trigger");
125+
}
126+
};
127+
128+
try {
129+
OperationContext.getGlobalErrorReceivingResponseEventHandler().addListener(globalResponseReceivedListener);
132130

133131
assertEquals(0, callList.size());
134132
assertEquals(0, globalCallList.size());
@@ -157,8 +155,7 @@ public void eventOccurred(ErrorReceivingResponseEvent eventArg) {
157155
assertEquals(2, globalCallList.size());
158156
}
159157
finally {
160-
// reset event handler to prevent future tests from failing
161-
OperationContext.setGlobalErrorReceivingResponseEventHandler(new StorageEventMultiCaster<ErrorReceivingResponseEvent, StorageEvent<ErrorReceivingResponseEvent>>());
158+
OperationContext.getGlobalErrorReceivingResponseEventHandler().removeListener(globalResponseReceivedListener);
162159
}
163160
}
164161

0 commit comments

Comments
 (0)