aws-sdk-s3 1.16.0 → 1.16.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws-sdk-s3.rb +1 -1
- data/lib/aws-sdk-s3/client.rb +1 -1
- data/lib/aws-sdk-s3/plugins/redirects.rb +3 -1
- data/lib/aws-sdk-s3/plugins/s3_signer.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b26cef25a9dccb9567aad0403fce22584780e4f
|
|
4
|
+
data.tar.gz: 532c3c08c14536afc12328d173b5084657595a4e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9834c2a3d4af9c61a3b0533f32c76555f91be5f47c9ce0e99531f4332cbc1132f9463e5f6ddc07348aa9b3c0388bff2879a0ed5fd1b227247d522c28477098cc
|
|
7
|
+
data.tar.gz: 0467f08d6bff28ffb7333e905334c64f7d647475d844bb1aefddd56456dbb668b31b8825342f8932e8ace22a1b351b87f62d16f08cd8d3c3724020aec2e5fbef
|
data/lib/aws-sdk-s3.rb
CHANGED
data/lib/aws-sdk-s3/client.rb
CHANGED
|
@@ -18,7 +18,9 @@ by Amazon S3.
|
|
|
18
18
|
response = @handler.call(context)
|
|
19
19
|
if context.http_response.status_code == 307
|
|
20
20
|
endpoint = context.http_response.headers['location']
|
|
21
|
-
context.http_request.endpoint
|
|
21
|
+
unless context.http_request.endpoint.host.include?('fips')
|
|
22
|
+
context.http_request.endpoint = endpoint
|
|
23
|
+
end
|
|
22
24
|
context.http_response.body.truncate(0)
|
|
23
25
|
@handler.call(context)
|
|
24
26
|
else
|
|
@@ -113,7 +113,7 @@ module Aws
|
|
|
113
113
|
private
|
|
114
114
|
|
|
115
115
|
def handle_region_errors(response)
|
|
116
|
-
if wrong_sigv4_region?(response)
|
|
116
|
+
if wrong_sigv4_region?(response) && !fips_region?(response)
|
|
117
117
|
get_region_and_retry(response.context)
|
|
118
118
|
else
|
|
119
119
|
response
|
|
@@ -133,6 +133,10 @@ module Aws
|
|
|
133
133
|
S3::BUCKET_REGIONS[context.params[:bucket]] = actual_region
|
|
134
134
|
end
|
|
135
135
|
|
|
136
|
+
def fips_region?(resp)
|
|
137
|
+
resp.context.http_request.endpoint.host.include?('fips')
|
|
138
|
+
end
|
|
139
|
+
|
|
136
140
|
def wrong_sigv4_region?(resp)
|
|
137
141
|
resp.context.http_response.status_code == 400 &&
|
|
138
142
|
(
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-s3
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.16.
|
|
4
|
+
version: 1.16.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Amazon Web Services
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-07-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-kms
|