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

Commit 09c67c2

Browse files
author
jofriedm-msft
authored
Merge pull request #174 from Azure/master
Bringing master to dev
2 parents a4d2cc4 + 5cec298 commit 09c67c2

File tree

9 files changed

+9
-47
lines changed

9 files changed

+9
-47
lines changed

ChangeLog.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
2017.XX.XX Version X.X.X
2-
* Fixed a bug where the tranactional MD5 check would fail when downloading a range of blob or file and the recovery action is performed on a subsection of the range.
1+
2017.06.13 Version 5.3.0
2+
* Fixed a bug where the transactional MD5 check would fail when downloading a range of blob or file and the recovery action is performed on a subsection of the range.
33
* Fixed leaking connections for table requests.
44
* Fixed a bug where retries happened immediately when experiencing a network exception uploading data or getting the response.
55
* Fixed a bug where the response stream was not being closed on nonretryable exceptions.

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.2.0</version>
33+
<version>5.3.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.2.0</version>
29+
<version>5.3.0</version>
3030
</dependency>
3131
<dependency>
3232
<groupId>com.microsoft.azure</groupId>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ public static class HeaderConstants {
661661
/**
662662
* Specifies the value to use for UserAgent header.
663663
*/
664-
public static final String USER_AGENT_VERSION = "5.2.0";
664+
public static final String USER_AGENT_VERSION = "5.3.0";
665665

666666
/**
667667
* The default type for content-type and accept

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public void write(byte[] data, int offset, int length) throws IOException {
145145

146146
@Override
147147
public void write(InputStream sourceStream, long writeLength) throws IOException, StorageException {
148-
Utility.writeToOutputStream(sourceStream, this, writeLength, false, false, this.opContext, this.options, false, null /* descriptor */);
148+
Utility.writeToOutputStream(sourceStream, this, writeLength, false, false, this.opContext, this.options, false);
149149
}
150150

151151
@Override

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ public void write(final byte[] data, final int offset, final int length) throws
641641
*/
642642
@DoesServiceRequest
643643
public void write(final InputStream sourceStream, final long writeLength) throws IOException, StorageException {
644-
Utility.writeToOutputStream(sourceStream, this, writeLength, false, false, this.opContext, this.options, false, null /* descriptor */);
644+
Utility.writeToOutputStream(sourceStream, this, writeLength, false, false, this.opContext, this.options, false);
645645
}
646646

647647
/**

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

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,44 +1287,6 @@ public static StreamMd5AndLength writeToOutputStream(final InputStream sourceStr
12871287
options, shouldFlush, null /*StorageRequest*/, null /* descriptor */);
12881288
}
12891289

1290-
/**
1291-
* Reads data from an input stream and writes it to an output stream, calculates the length of the data written, and
1292-
* optionally calculates the MD5 hash for the data.
1293-
*
1294-
* @param sourceStream
1295-
* An <code>InputStream</code> object that represents the input stream to use as the source.
1296-
* @param outStream
1297-
* An <code>OutputStream</code> object that represents the output stream to use as the destination.
1298-
* @param writeLength
1299-
* The number of bytes to read from the stream.
1300-
* @param rewindSourceStream
1301-
* <code>true</code> if the input stream should be rewound <strong>before</strong> it is read; otherwise,
1302-
* <code>false</code>
1303-
* @param calculateMD5
1304-
* <code>true</code> if an MD5 hash will be calculated; otherwise, <code>false</code>.
1305-
* @param opContext
1306-
* An {@link OperationContext} object that represents the context for the current operation. This object
1307-
* is used to track requests to the storage service, and to provide additional runtime information about
1308-
* the operation.
1309-
* @param options
1310-
* A {@link RequestOptions} object that specifies any additional options for the request. Namely, the
1311-
* maximum execution time.
1312-
* @param request
1313-
* Used by download resume to set currentRequestByteCount on the request. Otherwise, null is always used.
1314-
* @return A {@link StreamMd5AndLength} object that contains the output stream length, and optionally the MD5 hash.
1315-
*
1316-
* @throws IOException
1317-
* If an I/O error occurs.
1318-
* @throws StorageException
1319-
* If a storage service error occurred.
1320-
*/
1321-
public static StreamMd5AndLength writeToOutputStream(final InputStream sourceStream, final OutputStream outStream,
1322-
long writeLength, final boolean rewindSourceStream, final boolean calculateMD5, OperationContext opContext,
1323-
final RequestOptions options, final Boolean shouldFlush, StorageRequest<?, ?, Integer> request)
1324-
throws IOException, StorageException {
1325-
return writeToOutputStream(sourceStream, outStream, writeLength, rewindSourceStream, calculateMD5, opContext, options, shouldFlush, request, null /* descriptor */);
1326-
}
1327-
13281290
/**
13291291
* Reads data from an input stream and writes it to an output stream, calculates the length of the data written, and
13301292
* optionally calculates the MD5 hash for the data.

microsoft-azure-storage/src/com/microsoft/azure/storage/file/FileOutputStream.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ public void write(final byte[] data, final int offset, final int length) throws
404404
*/
405405
@DoesServiceRequest
406406
public void write(final InputStream sourceStream, final long writeLength) throws IOException, StorageException {
407-
Utility.writeToOutputStream(sourceStream, this, writeLength, false, false, this.opContext, this.options, false, null /* descriptor */);
407+
Utility.writeToOutputStream(sourceStream, this, writeLength, false, false, this.opContext, this.options, false);
408408
}
409409

410410
/**

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>5.2.0</version>
13+
<version>5.3.0</version>
1414
<packaging>jar</packaging>
1515

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

0 commit comments

Comments
 (0)