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

Commit c22bdf0

Browse files
authored
Merge pull request #422 from Azure/dev
Dev
2 parents e5d51ee + 5e74cb4 commit c22bdf0

File tree

7 files changed

+10
-14
lines changed

7 files changed

+10
-14
lines changed

ChangeLog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2019.01.11 Version 10.4.0
2+
* Fixed a bug that caused errors when java.io.tempdir has no trailing separator.
3+
* Upgrade autorest-clientruntime dependency to include some bug fixes.
4+
15
2018.11.19 Version 10.3.0
26
* Added support for SLF4J.
37
* Included default logging to log warnings and errors to the temp directory by default.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ To get the binaries of this library as distributed by Microsoft, ready for use w
3737
<dependency>
3838
<groupId>com.microsoft.azure</groupId>
3939
<artifactId>azure-storage-blob</artifactId>
40-
<version>10.3.0</version>
40+
<version>10.4.0</version>
4141
</dependency>
4242
```
4343

pom.xml

Lines changed: 2 additions & 2 deletions
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.3.0</version>
17+
<version>10.4.0</version>
1818

1919
<name>Azure Storage Blob</name>
2020
<description>The Azure Storage Java Blob library.</description>
@@ -65,7 +65,7 @@
6565
<dependency>
6666
<groupId>com.microsoft.rest.v2</groupId>
6767
<artifactId>client-runtime</artifactId>
68-
<version>2.0.0</version>
68+
<version>2.0.2</version>
6969
</dependency>
7070
<dependency>
7171
<groupId>org.slf4j</groupId>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ static final class HeaderConstants {
184184
/**
185185
* Specifies the value to use for UserAgent header.
186186
*/
187-
static final String USER_AGENT_VERSION = "10.3.0";
187+
static final String USER_AGENT_VERSION = "10.4.0";
188188

189189
private HeaderConstants() {
190190
// Private to prevent construction.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public final class LoggingFactory implements RequestPolicyFactory {
5454
forceLogger.setLevel(Level.WARNING);
5555

5656
// Create the logs directory if it doesn't exist.
57-
File logDir = new File(System.getProperty("java.io.tmpdir") + "AzureStorageJavaSDKLogs");
57+
File logDir = new File(System.getProperty("java.io.tmpdir"), "AzureStorageJavaSDKLogs");
5858
if (!logDir.exists()) {
5959
if (!logDir.mkdir()) {
6060
throw new Exception("Could not create logs directory");

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ class APISpec extends Specification {
176176
if (accountName == null || accountKey == null) {
177177
System.out.println("Account name or key for the " + accountType + " account was null. Test's requiring " +
178178
"these credentials will fail.")
179-
throw new Exception()
179+
return null
180180
}
181181
return new SharedKeyCredentials(accountName, accountKey)
182182
}

src/test/java/com/microsoft/azure/storage/blob/LoggingTest.groovy

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -446,12 +446,4 @@ class LoggingTest extends APISpec {
446446
}
447447
}
448448
}
449-
450-
// Test creating directory and when directory exists
451-
// Test slf4j logging and default logging and HttpPipeline logging
452-
// Test that event logging only logs warnings and errors
453-
// Check that string is not formatted if we don't need to log?
454-
// Can attach a spy to the LoggerFactory.getLogger and make sure things are called the right number of times.
455-
// Test when the forceLogger fails to load
456-
// Test why the force logger seems to be printing some things to stdout? (Repro by setting the log level to warning)
457449
}

0 commit comments

Comments
 (0)