Wykres commitów

433 Commity (javascript)

Autor SHA1 Wiadomość Data
Andrew Gaul 8041761c8c Add read-only BlobStore middleware
Implement as a proof-of-concept JavaScript middleware.  Requires JDK
8.
2017-10-08 18:15:14 -07:00
Andrew Gaul 35d7c48475 Read-only middleware
Fixes #217.
2017-10-08 18:11:14 -07:00
Andrew Gaul 3dd7cfcd42 Address long narrowing issues
Found via error-prone 2.1.0.
2017-08-21 19:46:34 -07:00
Andrew Gaul f6c3ab9e75 Add @Nullable annotations where appropriate
Found via error-prone 2.1.0.
2017-08-21 19:46:33 -07:00
Andrew Gaul 51aa2e7fcd Address modern Guava deprecations 2017-08-21 15:04:41 -07:00
Andrew Gaul 39c289d649 Allow Docker environment to ignore unknown headers 2017-08-16 18:04:52 -07:00
Andrew Gaul 233559bb2b Do not ignore x-amz-storage-class if not STANDARD
Clients can set the ignore unknown headers parameter to preserve the
existing behavior.  References #234.
2017-08-16 18:04:52 -07:00
Andrew Gaul 1a639d1062 Upgrade s3-tests 2017-08-16 14:11:40 -07:00
Andrew Gaul d4802ec54f Emit InvalidArgument on CopyPart invalid range
References kahing/goofys#212.
2017-08-06 23:24:58 -07:00
Andrew Gaul 93b80f6373 Do not escape / when URL encoding
This allows clients to list pseudo-directories with slashes in them.
References kahing/goofys#213.
2017-08-02 23:06:13 -07:00
Andrew Gaul 9e406531bb Set response Content-Type to application/xml 2017-07-24 18:40:03 -07:00
Andrew Gaul 1e5ebadee4 Do not allow anonymous access to list buckets
Fixes #236.
2017-07-22 16:11:29 -07:00
Andrew Gaul 17294be152 Do not set endpoint if it is an empty string
Also do not pass along endpoint as an override if we set it via the
builder.  Fixes #229.
2017-07-08 19:45:22 -07:00
Chaithanya Ganta 23705a879b Moving signature creation logic to a separate class
Signed-off-by: Chaithanya Ganta <ganta@adobe.com>
2017-07-07 09:06:04 -07:00
Chaithanya Ganta 84885fa8cd Throw proper S3 error code for invalid buck name
INVALID_BUCKET_NAME for container creation request, else NO_SUCH_BUCKET
2017-06-02 13:47:51 +02:00
Chaithanya Ganta 6b92cc06f4 Validate bucket name before processing any request 2017-06-02 13:47:51 +02:00
Andrew Gaul 742820a93d Allow capitals as first character in bucket name
Curiously Amazon permits mixed case but documents that only lowercase
letters are allowed:

https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html

Fixes #226.
2017-05-24 22:02:48 -07:00
Rached Ben Mustapha e23e9b78e4 Handle HttpResponseException in S3ProxyHandlerJetty 2017-05-12 12:33:40 -07:00
Andrew Gaul 525c6e2275 Override PrintStream.write as well as print
args4j inconsistently uses both methods for output.  Workaround for
kohsuke/args4j#149.
2017-05-08 11:33:12 -07:00
Kishore battula 84ec8e22da added whether console is attached or not 2017-05-08 11:33:12 -07:00
Andrew Gaul 9c74851c43 Address error-prone 2.0.19 issues 2017-05-06 17:00:38 -07:00
Andrew Gaul e21b467110 Improve IP address validation 2017-05-06 12:27:46 -07:00
Michael Wittig 4f14b8607a HTTP POST Requests using AWS Signature Version 4 2017-05-05 12:11:54 -07:00
kishore d3c77384f1 Allow anonymous access to public-read containers 2017-05-03 00:02:05 -07:00
Andrew Gaul 8db6ce2a92 Replace parameters whitelist with blacklist
Mimic Amazon behavior of ignoring unknown parameters and only emit
NotImplemented when present in blacklist.  Fixes #189.
2017-04-25 14:03:43 -07:00
Andrew Gaul 6b30e66127 Do not set virtual host when it is an empty string
References #210.
2017-04-25 12:52:24 -07:00
Eric Urban 16af493cad Update docker script to allow for configuration of virtualhost 2017-04-25 10:40:01 -07:00
Andrew Gaul d427c8f7df Get Azure maximum part size dynamically
This size will increase from 4 to 100 MB in jclouds 2.1.0.
References #191.  Follow on to 2ddce6af86.
2017-04-24 12:16:38 -07:00
Andrew Gaul 0105fd66df Handle X-Amz-Expires header during authentication
Found via s3verify.
2017-04-24 04:00:48 -07:00
Andrew Gaul d005f452de Prefer failBecauseExceptionWasNotThrown over fail 2017-04-18 11:53:09 -07:00
Andrew Gaul 9ddcc5b2e6 Remove stale TODO 2017-04-16 21:08:45 -07:00
Andrew Gaul dea4b3bae3 Handle testMultipartUploadAbort azureblob quirks 2017-04-16 19:50:18 -07:00
Andrew Gaul fc204c0d49 Only create multipart stub blob when required 2017-04-16 19:04:29 -07:00
Andrew Gaul b9730a4b2f Make testSpecialCharacters compatible with Azure
Also sort prefix chars by hex values and remove unneeded delimiter.
2017-04-12 00:59:10 -07:00
Andrew Gaul d8546c00ce URL encode CommonPrefix when requested 2017-04-12 00:58:43 -07:00
Andrew Gaul 7d53dead20 Expand MPU test to check MPU and part listings 2017-04-11 19:30:12 -07:00
Andrew Gaul d1cc178f77 Skip tests which B2 does not support 2017-04-09 13:04:38 -07:00
Andrew Gaul 76d7bd911d Include cause when throwing S3Exception 2017-04-09 13:04:38 -07:00
Andrew Gaul 437ae2068d Stream B2 writes
Previously S3Proxy buffered B2 writes on disk to create a repeatable
payload for jclouds which calculated the SHA-1 checksum.  The B2
service no longer requires a checksum so we can remove the buffering.
2017-04-09 13:04:38 -07:00
Andrew Gaul 65e65bc214 Ensure that testBigMultipartUpload meets min size
Previously this failed on Backblaze B2.
2017-04-08 12:24:40 -07:00
Andrew Gaul 802b8510cf Set content bits only when provider supports them
Previously the AWS SDK choked on these null values.
2017-04-08 12:24:39 -07:00
Raphaël Pinson d3023e1695 Use JCLOUDS_ENDPOINT and JCLOUDS_REGION in run-docker-container.sh 2017-03-30 09:01:16 -07:00
Andrew Gaul 014f558c51 Support V4 Signed URLs
Fixes #160.  Fixes #164.  Fixes #204.
2017-03-16 19:29:03 -07:00
shenghu 8b2d056d40 Allow endpoint of s3proxy to have service path
Sometimes the service is not the only one under a domain.
This commit adds s3proxy.service-path to allow s3proxy to be deployed
with a context path. Fixes #48.
2017-03-12 16:55:49 -07:00
Andrew Gaul 8224f6fe6e Interpret chunked encoding with anonymous access
Also check authentication type correctly in the constructor to handle
configurations with anonymous access but set identity and credential.
References #145.
2017-03-10 19:46:15 -08:00
Kishore battula 842eaaf719 Added log prefix in test logback 2017-03-10 02:50:20 -08:00
Kishore battula bf281edebc Added log prefix in logback 2017-03-10 02:50:20 -08:00
Andrew Gaul a5692b986b Return zero when listing blob size
This makes more sense than returning the 8 byte stub blob size.
References #131.
2017-03-09 10:48:56 -08:00
Andrew Gaul 26f4232756 Emit LastModified during List Parts 2017-03-08 22:58:40 -08:00
Andrew Gaul 7116f29199 Add NullBlobStore
This throws away all data during object creation and reconstructs it
with NUL bytes.  Clients can use this middleware for performance
testing or to simulate very large objects.  Fixes #131.
2017-03-08 22:53:16 -08:00