1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/lib/fog/aws/models
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
..
auto_scaling SetInstanceProtection endopoint for auto scaling groups support 2018-03-22 16:14:35 +07:00
beanstalk Remove unecessary requires 2015-04-06 11:23:35 -03:00
cdn Rename CDN::AWS to AWS::CDN 2018-09-06 14:53:44 -04:00
cloud_watch Remove unecessary requires 2015-04-06 11:23:35 -03:00
compute add c6g and c6gd instance classes 2020-11-19 13:56:47 -05:00
data_pipeline Remove unecessary requires 2015-04-06 11:23:35 -03:00
dns git grep -l "DNS::AWS" -- lib/ | xargs sed -i "" "s/DNS::AWS/AWS::DNS/g" 2018-09-17 23:03:37 +09:00
efs Add encryption to EFS FileSystem creation 2018-06-20 12:37:09 -04:00
elasticache In ElastiCache: Parse SecurityGroups element into security_groups parameter 2015-10-13 18:32:38 -04:00
elb style(elb): reduce branch conditions and increase readability 2018-03-14 16:17:57 -07:00
glacier Remove unecessary requires 2015-04-06 11:23:35 -03:00
iam correction in iam/list_access_keys parser: Username should be UserName 2017-11-22 11:34:24 -05:00
kms kms service 2015-05-12 13:50:55 -07:00
rds Enhance rds server model to add db_subnet_group attribute 2019-03-25 17:32:50 +01:00
sns Remove unecessary requires 2015-04-06 11:23:35 -03:00
storage Filter unknown UploadPartCopy paramaters 2021-01-09 21:35:18 -08:00
support fix tests 2016-09-21 15:12:32 -04:00