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
test_list_multipart_upload still fails:

References #2.
  • Loading branch information
gaul committed Mar 1, 2015
1 parent 87e5636 commit 5d2ab56
Show file tree
Hide file tree
Showing 3 changed files with 457 additions and 3 deletions.
5 changes: 5 additions & 0 deletions src/main/java/org/gaul/s3proxy/S3ErrorCode.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ enum S3ErrorCode {
"Your previous request to create the named bucket" +
" succeeded and you already own it."),
BUCKET_NOT_EMPTY(HttpServletResponse.SC_CONFLICT, "Conflict"),
ENTITY_TOO_SMALL(HttpServletResponse.SC_BAD_REQUEST,
"Your proposed upload is smaller than the minimum allowed object" +
" size. Each part must be at least 5 MB in size, except the last" +
" part."),
INVALID_ACCESS_KEY_ID(HttpServletResponse.SC_FORBIDDEN, "Forbidden"),
INVALID_ARGUMENT(HttpServletResponse.SC_BAD_REQUEST, "Bad Request"),
INVALID_BUCKET_NAME(HttpServletResponse.SC_BAD_REQUEST, "Bad Request"),
Expand All @@ -52,6 +56,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 5d2ab56

Please sign in to comment.