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
Andrew Gaul
92ef32f860
Address deprecated MultipartPart.create calls
2017-03-08 22:35:55 -08:00
Andrew Gaul
9af67702ad
Always emit LastModified header in list parts
...
Some clients like jclouds expect this to be present. Fixes #195 .
2017-03-08 14:10:09 -08:00
shenghu
b265fed46f
Add verification of override parameters for presigned url.
2017-03-04 17:16:39 -08:00
Andrew Gaul
2ddce6af86
Get Azure maximum part size dynamically
...
This size will increase from 4 to 100 MB in jclouds 2.1.0.
References #191 .
2017-03-01 12:52:08 -08:00
Andrew Gaul
64c288ef43
Skip MD5 checking on GET for Azure
...
Also use constant name instead of string.
2017-03-01 12:52:07 -08:00
Andrew Gaul
5ee5cf6c53
Prepend S3Proxy version in User-Agent header
...
This only includes the version in the main package and not the unit
test. Fixes #136 .
2017-02-27 09:48:37 -08:00
Philipp Marx
d6ca2fb280
Add support for ignoring unknown parameters
...
Presigned URLs may contain additional parameters in the URL which will
be used “as is” by the client uploading/downloading content from S3.
CLOSES #138
2017-02-22 10:39:37 -08:00
Andrew Gaul
f5d2fa9a0b
Put each subresource on its own line
2017-02-21 16:34:13 -08:00
shenghu
3b4e0c8fdf
This change makes S3Proxy able to validate presigned url which
...
has override parameters, i.e. "content-disposition",
"response-content-encoding".
2017-02-22 00:32:21 +08:00
Andrew Gaul
66c3c73fc7
Remove stale TODOs
2017-02-20 13:27:51 -08:00
oxalis-gps
09d744763d
Added Docker environment variable "S3PROXY_CORS_ALLOW_ALL"
...
refs issues #142
refs Pull #144
The default value is false
2017-02-16 13:49:48 -08:00
Andrew Gaul
e581d99517
Rename S3AwsSdkTest to AwsSdkTest
2017-02-15 23:33:19 -08:00