aws-sdk-core 3.125.1 → 3.125.5

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: 4e0d8c009bf3f995fc7c5e1d07ca35f159fb144e9f8a6e8ee69a6b6276f74c3a
4
- data.tar.gz: a710b35aa3f6e1d9d8861daa5801ee9b901ec37ba9a8f64a84b1b4d148513012
3
+ metadata.gz: 6097fa7cc1661cdca09ad52fbf3f6ac5d0e2cb23f12c042afb83348fbb682167
4
+ data.tar.gz: 7674b35f80736d81b5f239bff160457ca5a377c576720f27aae4099298bb7dae
5
5
  SHA512:
6
- metadata.gz: 41adb70044beb5e732a049e9ea3ba0a4bdd2368749ae43e0cda71f71e2ff2e3725cb2647107096ecb561a098bc676ab31140294aa98b9543f5794224c73a2895
7
- data.tar.gz: 3c83325c9da34ccf75aa6fb52cbd1b65bbd803b10b7b74554e6237d95b4e9d6674894be73c7e680d4f4f65f2ea1f8745c2dc05b1fe527b817a644287c393b511
6
+ metadata.gz: 8ec3ffb176c06f067369f3a58ce65fa3fe03fe017312d67a10bbeeae9dcaaaa95ddbbc295b0235fa7671037768ece22a0d6c5d2691fb93d11fd08235dcb80b15
7
+ data.tar.gz: 0da7d408ebe2173564167decedeb434dc941b786eca73e207c82d93663fc85d9dadaedca6e1a643cfa375332ebd40866f791fa815bb4356a4536c48604991235
data/CHANGELOG.md CHANGED
@@ -1,6 +1,27 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 3.125.5 (2022-01-19)
5
+ ------------------
6
+
7
+ * Issue - Correctly serialize empty header lists.
8
+
9
+ 3.125.4 (2022-01-18)
10
+ ------------------
11
+
12
+ * Issue - Add `InternalError` to `ErrorInspector` for S3 errors.
13
+
14
+
15
+ 3.125.3 (2022-01-12)
16
+ ------------------
17
+
18
+ * Issue - Add `ExpiredTokenException` to `ErrorInspector` for Kinesis errors.
19
+
20
+ 3.125.2 (2022-01-10)
21
+ ------------------
22
+
23
+ * Issue - Correctly serialize lists of strings in headers with quotes and commas.
24
+
4
25
  3.125.1 (2022-01-04)
5
26
  ------------------
6
27
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.125.1
1
+ 3.125.5
@@ -13,7 +13,8 @@ module Aws
13
13
  'InvalidAccessKeyId', # s3
14
14
  'AuthFailure', # ec2
15
15
  'InvalidIdentityToken', # sts
16
- 'ExpiredToken' # route53
16
+ 'ExpiredToken', # route53
17
+ 'ExpiredTokenException' # kinesis
17
18
  ]
18
19
  )
19
20
 
@@ -45,6 +46,7 @@ module Aws
45
46
  NETWORKING_ERRORS = Set.new(
46
47
  [
47
48
  'RequestTimeout', # s3
49
+ 'InternalError', # s3
48
50
  'RequestTimeoutException', # glacier
49
51
  'IDPCommunicationError' # sts
50
52
  ]
@@ -141,4 +143,4 @@ module Aws
141
143
  end
142
144
  end
143
145
  end
144
- end
146
+ end
@@ -32,12 +32,11 @@ module Aws
32
32
 
33
33
  def apply_header_value(headers, ref, value)
34
34
  value = apply_json_trait(value) if ref['jsonvalue']
35
- headers[ref.location_name] =
36
- case ref.shape
37
- when TimestampShape then timestamp(ref, value)
38
- when ListShape then list(ref, value)
39
- else value.to_s
40
- end
35
+ case ref.shape
36
+ when TimestampShape then headers[ref.location_name] = timestamp(ref, value)
37
+ when ListShape then list(headers, ref, value)
38
+ else headers[ref.location_name] = value.to_s
39
+ end
41
40
  end
42
41
 
43
42
  def timestamp(ref, value)
@@ -50,8 +49,16 @@ module Aws
50
49
  end
51
50
  end
52
51
 
53
- def list(_ref, value)
54
- value.compact.join(",")
52
+ def list(headers, ref, value)
53
+ return if !value || value.empty?
54
+ headers[ref.location_name] = value
55
+ .compact
56
+ .map { |s| escape_header_list_string(s.to_s) }
57
+ .join(",")
58
+ end
59
+
60
+ def escape_header_list_string(s)
61
+ (s.include?('"') || s.include?(",")) ? "\"#{s.gsub('"', '\"')}\"" : s
55
62
  end
56
63
 
57
64
  def apply_header_map(headers, ref, values)
@@ -541,7 +541,7 @@ module Aws::SSO
541
541
  params: params,
542
542
  config: config)
543
543
  context[:gem_name] = 'aws-sdk-core'
544
- context[:gem_version] = '3.125.1'
544
+ context[:gem_version] = '3.125.5'
545
545
  Seahorse::Client::Request.new(handlers, context)
546
546
  end
547
547
 
data/lib/aws-sdk-sso.rb CHANGED
@@ -50,6 +50,6 @@ require_relative 'aws-sdk-sso/customizations'
50
50
  # @!group service
51
51
  module Aws::SSO
52
52
 
53
- GEM_VERSION = '3.125.1'
53
+ GEM_VERSION = '3.125.5'
54
54
 
55
55
  end
@@ -2284,7 +2284,7 @@ module Aws::STS
2284
2284
  params: params,
2285
2285
  config: config)
2286
2286
  context[:gem_name] = 'aws-sdk-core'
2287
- context[:gem_version] = '3.125.1'
2287
+ context[:gem_version] = '3.125.5'
2288
2288
  Seahorse::Client::Request.new(handlers, context)
2289
2289
  end
2290
2290
 
data/lib/aws-sdk-sts.rb CHANGED
@@ -50,6 +50,6 @@ require_relative 'aws-sdk-sts/customizations'
50
50
  # @!group service
51
51
  module Aws::STS
52
52
 
53
- GEM_VERSION = '3.125.1'
53
+ GEM_VERSION = '3.125.5'
54
54
 
55
55
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.125.1
4
+ version: 3.125.5
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-01-04 00:00:00.000000000 Z
11
+ date: 2022-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath