Harshavardhana
1d8a8c63db
Simplify data verification with HashReader. ( #5071 )
...
Verify() was being called by caller after the data
has been successfully read after io.EOF. This disconnection
opens a race under concurrent access to such an object.
Verification is not necessary outside of Read() call,
we can simply just do checksum verification right inside
Read() call at io.EOF.
This approach simplifies the usage.
7 years ago
Harshavardhana
c3ff402fcb
Fix signature v2 and presigned query unescaping. ( #4936 )
...
Simplifies the testing code by using s3signer
package from minio-go library.
Fixes #4927
7 years ago
Andreas Auernhammer
79ba4d3f33
refactor ObjectLayer PutObject and PutObjectPart ( #4925 )
...
This change refactor the ObjectLayer PutObject and PutObjectPart
functions. Instead of passing an io.Reader and a size to PUT operations
ObejectLayer expects an HashReader.
A HashReader verifies the MD5 sum (and SHA256 sum if required) of the object.
This change updates all all PutObject(Part) calls and removes unnecessary code
in all ObjectLayer implementations.
Fixes #4923
7 years ago
wd256
3d21119ec8
Provide 200 response with per object error listing on access denied for delete multiple object request ( #4817 )
7 years ago
poornas
18c4e5d357
Enable browser support for gateway ( #4425 )
8 years ago
samkevich
99ca8a2928
fix InvalidAccessKeyId error according to amazon documentation ( #4404 )
...
http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
8 years ago
Bala FA
e8ce3b64ed
Generate and use access/secret keys properly ( #3498 )
8 years ago
Bala FA
61d67a061c
tests: add unit test for DeleteMultipleObjectsHandler. ( #3267 )
...
Fixes #3058
8 years ago
Karthic Rao
17e49a9ed2
signature-v2 fix. ( #2918 )
...
- Return errors similar to V4 Sign processsing.
- Return ErrMissing fields when Auth Header fields are missing.
- Return InvalidAccessID when accessID doesn't match.
* tests: Adding V2 signature tests for bucket handler API's.
8 years ago
Karthic Rao
3ac6790ca2
tests: Add Object Layer nil test for bucket-handler API's ( #2899 )
8 years ago
Karthic Rao
e213172431
tests: Missing anonymous tests for bucket-handlers. ( #2885 )
8 years ago
Harshavardhana
5885ffc8ae
signature: Add legacy signature v2 support transparently. ( #2811 )
...
Add new tests as well.
8 years ago
Harshavardhana
6aa2fc95c0
Revert "bucket: refactor policies and fix bugs related to enforcing policies. ( #2766 )"
...
This reverts commit ca5ca8332b
.
8 years ago
Harshavardhana
ca5ca8332b
bucket: refactor policies and fix bugs related to enforcing policies. ( #2766 )
...
This patch also addresses the problem of double caching at
object layer once at XL and another at handler layer.
8 years ago
Harshavardhana
a1ff351f21
tests: Fix ListMultipartUploadsHandler tests. ( #2705 )
8 years ago
Harshavardhana
03430d0db8
tests: Add ListBucketHandler tests. ( #2701 )
...
part-3 final fix for #2412
8 years ago
Harshavardhana
ee7e70c992
tests: Add tests for ListMultipartUploads, DeleteMultipleObjects. ( #2649 )
...
Additionally adds PostPolicyHandler tests.
8 years ago
Harshavardhana
eae0281c64
tests: Add GetBucketLocation, HeadBucket tests. ( #2644 )
8 years ago