Wykres commitów

190 Commity (1d7af6acaeb417695ab757824cdb287d12d0b64d)

Autor SHA1 Wiadomość Data
Timur Alperovich 1d7af6acae Add a test for failure when using v4 signatures.
Adds a unit test with the Amazon Java SDK for failures when submitting
v4-signed requests. We use the Amazon Java SDK while waiting for the
issues JCLOUDS-480 to be resolved (implementing v4 signatures).
2015-03-05 23:37:25 -08:00
Andrew Gaul c2724b4399 Introduce S3Exception
This elides some boilerplate and ensures that we consistently handle
errors.
2015-03-04 12:49:09 -08:00
Andrew Gaul 7e0c817660 Add NotImplemented error code 2015-03-04 10:38:57 -08:00
Andrew Gaul cbac36efdd Avoid unnecessary String concatenation 2015-03-03 16:50:38 -08:00
Ka-Hing Cheung 335e735c5b provide reason for access denied 2015-03-03 12:47:33 -08:00
Andrew Gaul 71d3a67b95 Explicitly add Content-Length
Previously InitiateMultipartUpload used the incorrect length.  Found
with s3fs integration tests.  References #2.
2015-03-02 17:00:41 -08:00
Andrew Gaul e90074afc0 Add helper to emit Owner stanza 2015-03-02 16:08:09 -08:00
Andrew Gaul 0337a4e4bc Handle zero-length multi-part upload 2015-03-02 16:08:09 -08:00
Andrew Gaul 6d5f380590 Update s3-tests submodule for MPU 2015-03-02 15:09:30 -08:00
Andrew Gaul b0b1f4e9fa Emulate multipart upload with single-part uploads
This approach requires three times as many operations as the optimal
approach.  Implementing this correctly requires exposing the
underlying multipart operations in jclouds.  Most s3-tests pass but
test_list_multipart_upload still fails:

References #2.
2015-03-02 14:37:16 -08:00
Andrew Gaul 11c93a43a8 Use correct content length during copy
Previously replacing the metadata would zero out the object contents.
2015-03-02 14:01:00 -08:00
Andrew Gaul 87e5636eff Update s3-tests submodule
Upstream has merged many commits
2015-02-27 13:29:01 -08:00
Andrew Gaul f8459b4a6b Upgrade to Jetty 9.2.9.v20150224
Changelogs:

http://dev.eclipse.org/mhonarc/lists/jetty-announce/msg00073.html
http://dev.eclipse.org/mhonarc/lists/jetty-announce/msg00074.html
2015-02-26 14:50:45 -08:00
Andrew Gaul a65221091f Use maven-assembly-plugin instead of Maven Shade
This works around MSHADE-183 which prevents use with Maven 3.2.5 and
has caused recent Travis CI failures.  Fixes #38.
2015-02-22 23:22:05 -08:00
Andrew Gaul 52118ced78 Add support to set and get canned object ACLs
Currently only support private and public-read access.
2015-02-22 18:48:08 -08:00
Andrew Gaul c8e4279853 Propagate Exception if not HttpResponseException 2015-02-20 17:22:47 -08:00
Andrew Gaul 613da2f3ec Use builder to create S3Proxy
Also hoist sanity checks out of main.
2015-02-20 11:01:37 -08:00
Andrew Gaul 2e82478f0e Prefer static imports for Preconditions 2015-02-20 10:50:37 -08:00
Timur Alperovich 51e7f3c22a Expose the Jetty state in the S3Proxy interface.
The commit adds a getState() method, which exposes the Jetty state
to the caller. This is useful to check whether the server is running
or is in some other state.
2015-02-18 16:13:45 -08:00
Andrew Gaul b85ab17316 Correct typo 2015-02-18 11:34:28 -08:00
Andrew Gaul 7e61856db1 Support native multi-object delete 2015-02-15 01:07:10 -08:00
Andrew Gaul 9a261a62b0 Add support to set and get canned container ACLs
Currently only support private and public-read access.
2015-02-13 15:43:58 -08:00
Andrew Gaul cf9c70500e Upgrade to maven-checkstyle-plugin 2.14
Release notes:

http://mail-archives.apache.org/mod_mbox/maven-announce/201409.mbox/%3C1430082.PcumKFdX1o%40herve-desktop%3E
http://mail-archives.apache.org/mod_mbox/maven-announce/201502.mbox/%3C1986811660.01423169180947.JavaMail.Dennis%40Dennis-Dator%3E
2015-02-12 18:12:51 -08:00
Andrew Gaul 4ebbce7956 Run unknown parameter test
JCLOUDS-258 allows use of MPU with the generic S3 provider.
2015-02-12 18:08:29 -08:00
Andrew Gaul a6c5fabb0b Upgrade to really-executable-jars-maven-plugin 1.4.0
Release notes:

https://github.com/brianm/really-executable-jars-maven-plugin/releases/tag/really-executable-jar-maven-plugin-1.4.0
2015-02-08 16:51:07 -08:00
Andrew Gaul cb93de6bf6 Upgrade to Jetty 9.2.7.v20150116
Changelog:

http://dev.eclipse.org/mhonarc/lists/jetty-announce/msg00072.html
2015-02-05 12:43:32 -08:00
Andrew Gaul 4eb1c06c17 Correct typo 2015-02-05 09:59:26 -08:00
Andrew Gaul e072163e9c Add Apache snapshots repository
Needed by jclouds 2.0.0-SNAPSHOT.  Regression from
23f8e772da.  Fixes #37.
2015-01-24 04:02:39 -08:00
Andrew Gaul 967a355b43 Upgrade to nexus-staging-plugin 1.6.5
Release notes:

https://github.com/sonatype/nexus-maven-plugins/releases
2015-01-22 19:26:18 -08:00
Andrew Gaul 074c36baab Add test harness to execute s3-tests
Also add Travis configuration.
2015-01-22 17:14:45 -08:00
Andrew Gaul 4d00e47023 Add s3-tests submodule
Use andrewgaul fork instead of upstream for multiple fixes and
exclusions.
2015-01-22 17:05:04 -08:00
Andrew Gaul 23f8e772da Upgrade to jclouds 2.0.0-SNAPSHOT
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.
2015-01-22 14:03:18 -08:00
Andrew Gaul 50eb30bc6c Bump version to 1.4.0-SNAPSHOT 2015-01-22 13:58:33 -08:00
Andrew Gaul 6e52c54c6d Bump version to 1.3.0 2015-01-22 13:54:45 -08:00
Andrew Gaul 772a092b84 Add maven-gpg-plugin 2015-01-22 13:54:45 -08:00
Andrew Gaul af9cde3046 Add maven-javadoc-plugin and maven-source-plugin
This will deploy javadoc and source to Maven Central.
2015-01-22 13:50:26 -08:00
Andrew Gaul fb0f321303 Improve CommonPrefixes support
References #5.
2015-01-22 13:30:28 -08:00
Andrew Gaul 7815a79548 Emit NotImplemented with unknown parameters
This ensures that requests like multi-part upload and version
operations emit the intended responses.
2015-01-19 20:06:58 -08:00
Andrew Gaul bae51b500a Reduce exception handling scope 2015-01-16 15:56:08 -08:00
Andrew Gaul e1c7b22b7d Handle NoSuchBucket during copy object 2015-01-16 15:14:53 -08:00
Andrew Gaul 678ae67754 Upgrade to slf4j 1.7.10
Changelog:

http://www.slf4j.org/news.html
2015-01-16 11:10:20 -08:00
Andrew Gaul c435379f85 Upgrade to assertj 1.7.1
Changelog:

http://joel-costigliola.github.io/assertj/assertj-core-news.html#assertj-core-1.7.1
2015-01-16 11:10:19 -08:00
Andrew Gaul d81ee81a86 Handle null from HttpResponseException.getResponse 2015-01-15 18:36:14 -08:00
Andrew Gaul 05b63365bf Emit bogus CreationDate when not present 2015-01-15 18:23:22 -08:00
Andrew Gaul 869d47a5e1 Add JIRA issue for object ACLs 2015-01-14 14:10:28 -08:00
Andrew Gaul 7dff664c17 Add prefix to CommonPrefixes
Addresses s3cmd tests failures.
2015-01-14 12:24:23 -08:00
Andrew Gaul 5b5e9877b9 Improve support for x-amz-metadata-directive
Replace content metadata in addition to user metadata.  Addresses
s3cmd tests failures.
2015-01-13 23:32:46 -08:00
Andrew Gaul a6133a60a6 Honor force multipart in emulated copy object 2015-01-13 23:28:09 -08:00
Andrew Gaul 86665450ca URI decode copy source path
Fixes s3cmd tests failures seen with Unicode object names.  Follow on
to b91b8e25d7.
2015-01-13 18:44:59 -08:00
Andrew Gaul e3c49331ac Emit UTF-8 in object listing and multi-delete
Fixes s3cmd tests failures seen with Unicode object names.
2015-01-13 17:50:47 -08:00