Skip to content

Commit

Permalink
Emulate multipart upload with single-part uploads
Browse files Browse the repository at this point in the history
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
two still fail:

test_multipart_upload_size_too_small
test_list_multipart_upload

References #2.
  • Loading branch information
gaul committed Jan 21, 2015
1 parent 7815a79 commit 44841bb
Show file tree
Hide file tree
Showing 2 changed files with 362 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/java/org/gaul/s3proxy/S3ErrorCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ enum S3ErrorCode {
"Length Required"),
NO_SUCH_BUCKET(HttpServletResponse.SC_NOT_FOUND, "Not Found"),
NO_SUCH_KEY(HttpServletResponse.SC_NOT_FOUND, "Not Found"),
NO_SUCH_UPLOAD(HttpServletResponse.SC_NOT_FOUND, "Not Found"),
REQUEST_TIME_TOO_SKEWED(HttpServletResponse.SC_FORBIDDEN, "Forbidden"),
REQUEST_TIMEOUT(HttpServletResponse.SC_BAD_REQUEST, "Bad Request"),
SIGNATURE_DOES_NOT_MATCH(HttpServletResponse.SC_FORBIDDEN, "Forbidden");
Expand Down
Loading

0 comments on commit 44841bb

Please sign in to comment.