Skip to content

Commit

Permalink
Upgrade to jclouds 2.0.0-SNAPSHOT
Browse files Browse the repository at this point in the history
This release allows larger than 2 GB single-part blobs and supports
object metadata with the filesystem provider on Linux and Windows.  It
also includes support for object size in container lists.  Fixes #1.
Fixes #6.
  • Loading branch information
gaul committed Jan 12, 2015
1 parent 57687bd commit 4edc33b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,10 @@ Limitations
-----------
S3Proxy does not support:

* single-part uploads larger than 2 GB ([jclouds issue](https://issues.apache.org/jira/browse/JCLOUDS-264))
* multi-part uploads
* POST uploads
* bucket and object ACLs ([jclouds issue](https://issues.apache.org/jira/browse/JCLOUDS-660))
* object metadata with filesystem provider ([jclouds issue](https://issues.apache.org/jira/browse/JCLOUDS-658))
* object metadata with filesystem provider on Mac OS X ([OpenJDK issue](https://bugs.openjdk.java.net/browse/JDK-8030048))
* object server-side encryption
* object versioning

Expand Down
7 changes: 6 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jclouds.version>1.8.1</jclouds.version>
<jclouds.version>2.0.0-SNAPSHOT</jclouds.version>
</properties>

<prerequisites>
Expand All @@ -224,6 +224,11 @@
<artifactId>jclouds-allblobstore</artifactId>
<version>${jclouds.version}</version>
</dependency>
<dependency>
<groupId>org.apache.jclouds.api</groupId>
<artifactId>filesystem</artifactId>
<version>${jclouds.version}</version>
</dependency>
<dependency>
<groupId>org.apache.jclouds.driver</groupId>
<artifactId>jclouds-slf4j</artifactId>
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/org/gaul/s3proxy/S3ProxyHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -700,9 +700,8 @@ private void handleBlobList(HttpServletRequest request,
xml.writeEndElement();
}

// TODO: StorageMetadata does not contain size
xml.writeStartElement("Size");
xml.writeCharacters("0");
xml.writeCharacters(String.valueOf(metadata.getSize()));
xml.writeEndElement();

xml.writeStartElement("StorageClass");
Expand Down

0 comments on commit 4edc33b

Please sign in to comment.