1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
Commit graph

25 commits

Author SHA1 Message Date
shanu-idrive
fa78f28d6b Merge branch 'master' into bulk-delete-for-multiple-versions-of-object 2021-03-17 21:20:46 +05:30
shanu-idrive
f92850c253 added handling for multiple versions delete for any object in bulk delete 2021-03-15 16:33:44 +05:30
Midhun Krishna
0d5466549e Fixes domain name duplication in url
When a bucket url like bucket.s3.amazonaws.com with bucket name bucket
is present in params passed into request_params method, it
should not dupplicate the subdomain.
current: bucket.bucket.s3.amazonaws.com
fix: bucket.s3.amazonaws.com

Fix test failure due to Hash#slice not present for ruby 2.3
2021-03-13 00:43:15 +05:30
Stan Hu
12077a31b7 Reduce memory usage of large multipart copy tests 2021-01-09 22:08:54 -08:00
Stan Hu
3546408e47 Filter unknown UploadPartCopy paramaters
Previously attempting to use S3 server side encryption headers
(e.g. `x-amz-server-side-encryption`) would fail when attempting to use
`File#copy` because the method would pass these headers to the UploadPartCopy
(https://docs.aws.amazon.com/AmazonS3/latest/API/API_UploadPartCopy.html)
API call. However, this would fail with an error:

```
<Code>InvalidArgument</Code>
<Message>x-amz-server-side-encryption header is not supported for this operation.</Message>
<ArgumentName>x-amz-server-side-encryption</ArgumentName>
<ArgumentValue>AES256</ArgumentValue>
```

This header can and should be used in the CompleteMultipartUpload
call. To support this, we filter out unknown headers in the
UploadPartCopy.
2021-01-09 21:35:18 -08:00
ekulz
5c13a5df99 Rewind pointer if file is eof on put_object mock 2021-01-07 18:09:12 -08:00
Stan Hu
b8e3032224 Make concurrency a File attribute instead of a copy option
This avoids passing a parameter to an the HTTP request and also allows
callers to use `respond_to?(:concurrency)` to check whether `File`
supports this feature.
2020-11-19 12:36:19 -08:00
Stan Hu
68ae08a784 Disable concurrency in copy case by default
Remove dependency on concurrent-ruby

Add documentation for copying files
2020-11-19 12:14:20 -08:00
Stan Hu
e75a4bac0f Add test for copying empty object 2020-11-18 07:49:46 -08:00
Stan Hu
6704124fd0 Use constant for multipart chunk size in test 2020-11-18 07:47:54 -08:00
Stan Hu
e3a9a3521e Add support for multipart File#copy
This enables copying of files larger than 5 GB.
2020-11-17 23:54:46 -08:00
sue445
e21685385b git grep -l "Storage::AWS" -- tests/ | xargs sed -i "" "s/Storage::AWS/AWS::Storage/g" 2018-09-17 23:04:55 +09:00
Tomer Brisker
5cb6edaa0a Drop Ruby<2.0 support
Users requiring ruby 1.9 or older should use the main fog gem.
2017-10-23 16:49:59 +03:00
Paulo Ribeiro
7cf0de41f8 fix(Tests):Remove debugging 2017-09-14 16:44:51 -03:00
Alexander Stuart-Kregor
479a79e37d Removed versioning convenience tag. 2017-02-12 12:27:33 +00:00
Alexander Stuart-Kregor
869c2ecc53 Ensure get_bucket_object_versions errors are correctly mocked. 2017-02-12 12:25:23 +00:00
Alexander Stuart-Kregor
9475c9a73d Ensure get_object and head_object errors are correctly mocked. 2017-02-12 12:17:39 +00:00
Alessandro Lepore
c1337cd48d fix S3 #delete_multiple_objects for UTF-8 names 2016-10-15 12:02:25 +02:00
Todd Willey
b1a6204fd2 Update test lifecycle capitalization. 2015-12-21 18:48:29 -05:00
Todd Willey
8a2066af07 Support NonCurrentVersion[Expiration,Transition] for s3 lifecycle. 2015-12-21 16:51:42 -05:00
James Rucker
f46a94b1db Mocked put_bucket no longer clobbers existing bucket
In the default region (us-east-1), put_bucket will return an existing
bucket, rather than throw a BucketAlreadyOwnedByYou error. Changed the
mock to reflect this behavior.
2015-08-24 16:27:12 -07:00
mrloop
2b677d4dbd Making it easier to get pre-signed head requests
Very similar to get_url. https://github.com/fog/fog-aws/issues/47
2015-02-07 12:57:19 +00:00
Josh Lane
c3626c8637 latest import
* still waiting on fog/fog#3376
2015-01-06 09:32:01 -08:00
Josh Lane
dcfd354b8a working tests 2015-01-02 09:42:20 -08:00
Josh Lane
d48d376e9c initial import
* take the liberty of correcting Aws naming
2014-12-31 09:17:51 -08:00