mirror of https://github.com/apache/jclouds.git
parent
0339cd2fd0
commit
0a801d2ad2
|
@ -549,7 +549,7 @@ public final class LocalBlobStore implements BlobStore {
|
|||
try {
|
||||
Blob blob = getBlob(containerName, key);
|
||||
return blob != null ? (BlobMetadata) BlobStoreUtils.copy(blob.getMetadata()) : null;
|
||||
} catch (Exception e) {
|
||||
} catch (RuntimeException e) {
|
||||
if (size(Iterables.filter(getCausalChain(e), KeyNotFoundException.class)) >= 1)
|
||||
return null;
|
||||
throw e;
|
||||
|
|
|
@ -278,7 +278,7 @@ public class JavaUrlHttpCommandExecutorService extends BaseHttpCommandExecutorSe
|
|||
// HttpUrlConnection strips Content-Length: 0 without setDoOutput(true)
|
||||
String method = connection.getRequestMethod();
|
||||
if ("POST".equals(method) || "PUT".equals(method)) {
|
||||
connection.setFixedLengthStreamingMode(0L);
|
||||
connection.setFixedLengthStreamingMode(0);
|
||||
connection.setDoOutput(true);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -201,8 +201,8 @@
|
|||
|
||||
<properties>
|
||||
<clojure.version>1.3.0</clojure.version>
|
||||
<maven.compile.source>1.7</maven.compile.source>
|
||||
<maven.compile.target>1.7</maven.compile.target>
|
||||
<maven.compile.source>1.6</maven.compile.source>
|
||||
<maven.compile.target>1.6</maven.compile.target>
|
||||
<maven.compile.deprecation>true</maven.compile.deprecation>
|
||||
<maven.site.url.base>gitsite:git@github.com/jclouds/jclouds-maven-site.git</maven.site.url.base>
|
||||
<http.proxyHost />
|
||||
|
@ -1088,7 +1088,7 @@
|
|||
<groupId>org.gaul</groupId>
|
||||
<artifactId>modernizer-maven-plugin</artifactId>
|
||||
<configuration>
|
||||
<javaVersion>1.7</javaVersion>
|
||||
<javaVersion>${maven.compile.source}</javaVersion>
|
||||
<!-- in jclouds-project use the local file. ${project.basedir}
|
||||
required here as 1.1.0 of the modernizer plugin can't find the
|
||||
exclusions file otherwise -->
|
||||
|
@ -1137,7 +1137,7 @@
|
|||
</dependency>
|
||||
</dependencies>
|
||||
<configuration>
|
||||
<javaVersion>1.7</javaVersion>
|
||||
<javaVersion>${maven.compile.source}</javaVersion>
|
||||
<exclusionsFile>resources/modernizer_exclusions.txt</exclusionsFile>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
|
Loading…
Reference in New Issue