aws-sdk-s3 1.113.1 → 1.113.2

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
  SHA256:
3
- metadata.gz: 026e3f97da4622686ec697645254154a90241a079b9d3cfc4dc2c84f28fbd9f8
4
- data.tar.gz: 248578dd33fd677e25e365b48d60599facafe1aad724d2bbd794d1fa3a8d679b
3
+ metadata.gz: 5274b91e581e514386584d3ea2284363db3bcc1d1d6cbdd3ea992484a26ba3e3
4
+ data.tar.gz: 6659086890fbfcb9223311361dbb67f3a55738f2a01ce4845bb05210dd06f59a
5
5
  SHA512:
6
- metadata.gz: 654c9df11c39527148a013434efdedc203d2c34ecc0e60c39e5b9e9494e663104b48c25128627d97fc89bfe5d6c68ef1acc491d116a9de9b3143c5bc530c6026
7
- data.tar.gz: 3acc09ae8e9e5700734b371b59c6b4a4d2b5579b231af68c364994555a141da40d764222023ff142f8f4ee3e09ba95a0475e545f1dd33fc8ad3c0fd6bdf7a32f
6
+ metadata.gz: 2e25bc0dd1c8249a1c5982cb36f1e06b8b8dc8c3c04e277cd2b9eff8bb3ed2fc4cfd2617ecdd8ea206881e066a02a0bccfc525258a5dc9b2b15a42ad1568a31b
7
+ data.tar.gz: 9fb04f15c827cdcad16645bde85de0e2b9bdca01483acebc13d6ca8b163eeb21038882468a275b96e293f4c7be42ff481b9275c681d492925cc6e3469a05de02
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.113.2 (2022-04-26)
5
+ ------------------
6
+
7
+ * Issue - Fix an issue where `ExpiredToken` errors were retried as if the request was from another region.
8
+
4
9
  1.113.1 (2022-04-25)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.113.1
1
+ 1.113.2
@@ -15332,7 +15332,7 @@ module Aws::S3
15332
15332
  params: params,
15333
15333
  config: config)
15334
15334
  context[:gem_name] = 'aws-sdk-s3'
15335
- context[:gem_version] = '1.113.1'
15335
+ context[:gem_version] = '1.113.2'
15336
15336
  Seahorse::Client::Request.new(handlers, context)
15337
15337
  end
15338
15338
 
@@ -138,7 +138,8 @@ module Aws
138
138
  def handle_region_errors(response)
139
139
  if wrong_sigv4_region?(response) &&
140
140
  !fips_region?(response) &&
141
- !custom_endpoint?(response)
141
+ !custom_endpoint?(response) &&
142
+ !expired_credentials?(response)
142
143
  get_region_and_retry(response.context)
143
144
  else
144
145
  response
@@ -162,6 +163,10 @@ module Aws
162
163
  resp.context.http_request.endpoint.host.include?('fips')
163
164
  end
164
165
 
166
+ def expired_credentials?(resp)
167
+ resp.context.http_response.body_contents.match(/<Code>ExpiredToken<\/Code>/)
168
+ end
169
+
165
170
  def custom_endpoint?(resp)
166
171
  resolved_suffix = Aws::Partitions::EndpointProvider.dns_suffix_for(
167
172
  resp.context.config.region,
data/lib/aws-sdk-s3.rb CHANGED
@@ -69,6 +69,6 @@ require_relative 'aws-sdk-s3/event_streams'
69
69
  # @!group service
70
70
  module Aws::S3
71
71
 
72
- GEM_VERSION = '1.113.1'
72
+ GEM_VERSION = '1.113.2'
73
73
 
74
74
  end
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.113.1
4
+ version: 1.113.2
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: 2022-04-25 00:00:00.000000000 Z
11
+ date: 2022-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-kms