aws-sdk-s3 1.16.0 → 1.16.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '02598771db66274dbc2c0cc54bb89d83d94fc7e9'
4
- data.tar.gz: e3fffc5442a66ab75032d4d734ce9e5dd26e80c1
3
+ metadata.gz: 4b26cef25a9dccb9567aad0403fce22584780e4f
4
+ data.tar.gz: 532c3c08c14536afc12328d173b5084657595a4e
5
5
  SHA512:
6
- metadata.gz: 444989423926cf1bfc9a4f0674c32a1412c1c9a3ed26eeb976fb7207a08df75df623ab57275c5d89c7b2cb1b3bb4a972387c6a2d8fd319edc447f78adf6d0fcb
7
- data.tar.gz: d61c112b6a5d654b0c97c6c42edff9d98cffcecc5f67efaa44dfd0921fcbd8aed25162b890cfa6908484613ea92c163abece52e14dba048e09d386f21f972bcf
6
+ metadata.gz: 9834c2a3d4af9c61a3b0533f32c76555f91be5f47c9ce0e99531f4332cbc1132f9463e5f6ddc07348aa9b3c0388bff2879a0ed5fd1b227247d522c28477098cc
7
+ data.tar.gz: 0467f08d6bff28ffb7333e905334c64f7d647475d844bb1aefddd56456dbb668b31b8825342f8932e8ace22a1b351b87f62d16f08cd8d3c3724020aec2e5fbef
@@ -63,6 +63,6 @@ require_relative 'aws-sdk-s3/event_streams'
63
63
  # @service
64
64
  module Aws::S3
65
65
 
66
- GEM_VERSION = '1.16.0'
66
+ GEM_VERSION = '1.16.1'
67
67
 
68
68
  end
@@ -6384,7 +6384,7 @@ module Aws::S3
6384
6384
  params: params,
6385
6385
  config: config)
6386
6386
  context[:gem_name] = 'aws-sdk-s3'
6387
- context[:gem_version] = '1.16.0'
6387
+ context[:gem_version] = '1.16.1'
6388
6388
  Seahorse::Client::Request.new(handlers, context)
6389
6389
  end
6390
6390
 
@@ -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 = 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.0
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-06-28 00:00:00.000000000 Z
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